diff options
author | tv <tv@pkgsrc.org> | 2005-01-18 19:36:25 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2005-01-18 19:36:25 +0000 |
commit | 1369b5ddfbf9d7446ddae86dcf927163ee8e2dd9 (patch) | |
tree | 030e4f0d9c373328de0c68a856e5c6a34b05da91 /bootstrap | |
parent | b3913b078beb2f57da964b8663bb110b203f620c (diff) | |
download | pkgsrc-1369b5ddfbf9d7446ddae86dcf927163ee8e2dd9.tar.gz |
Add random image-base address hack adapted from libtool.
Diffstat (limited to 'bootstrap')
-rw-r--r-- | bootstrap/mods/mk/Interix.bsd.lib.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bootstrap/mods/mk/Interix.bsd.lib.mk b/bootstrap/mods/mk/Interix.bsd.lib.mk index 3b19b49280b..77c1c71e8f6 100644 --- a/bootstrap/mods/mk/Interix.bsd.lib.mk +++ b/bootstrap/mods/mk/Interix.bsd.lib.mk @@ -1,4 +1,4 @@ -# $NetBSD: Interix.bsd.lib.mk,v 1.1 2005/01/18 17:49:26 tv Exp $ +# $NetBSD: Interix.bsd.lib.mk,v 1.2 2005/01/18 19:36:25 tv Exp $ # @(#)bsd.lib.mk 8.3 (Berkeley) 4/22/94 .if !target(__initialized__) @@ -332,6 +332,7 @@ lib${LIB}.so.${SHLIB_FULLVERSION}: ${SOLIB} ${DPADD} \ @rm -f lib${LIB}.so.${SHLIB_FULLVERSION} $(CC) -shared ${SHLIB_SHFLAGS} -o ${.TARGET} \ ${SHLIB_LDSTARTFILE} \ + -Wl,--image-base,$$(($$RANDOM %4096/2*262144+1342177280)) \ -Wl,--whole-archive ${SOLIB} -Wl,--no-whole-archive ${LDADD} \ ${SHLIB_LDENDFILE} .if ${OBJECT_FMT} == "ELF" |