summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2010-11-11 22:53:55 +0000
committerdim <dim@FreeBSD.org>2010-11-11 22:53:55 +0000
commitfd6589bbdb2d6f2a1f44296c3db668afa7801866 (patch)
tree6c1f5168da23b19aa17e4015f35f83a3fb229d06 /libexec
parent52f3eed068eb349cd429547f6c1a868b947d82df (diff)
downloadFreeBSD-src-fd6589bbdb2d6f2a1f44296c3db668afa7801866.zip
FreeBSD-src-fd6589bbdb2d6f2a1f44296c3db668afa7801866.tar.gz
Use -fPIC to build libexec/rtld-elf on sparc64, so it will also be able
to link with newer binutils, without overflowing the GOT. Obtained from: projects/binutils-2.17
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rtld-elf/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile
index 62aaaab..bc23f7c 100644
--- a/libexec/rtld-elf/Makefile
+++ b/libexec/rtld-elf/Makefile
@@ -29,7 +29,12 @@ SYMLINKS= ${BINDIR}/${PROG} /usr/libexec/${PROG}
MLINKS= rtld.1 ld-elf.so.1.1 \
rtld.1 ld.so.1
-CFLAGS+= -fpic -DPIC
+.if ${MACHINE_CPUARCH} == "sparc64"
+CFLAGS+= -fPIC
+.else
+CFLAGS+= -fpic
+.endif
+CFLAGS+= -DPIC
LDFLAGS+= -shared -Wl,-Bsymbolic
DPADD= ${LIBC_PIC}
LDADD= -lc_pic -lssp_nonshared
OpenPOWER on IntegriCloud