Author: dim
Date: Thu Nov 11 22:53:55 2010
New Revision: 215148
URL: http://svn.freebsd.org/changeset/base/215148
Log:
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
Modified:
head/libexec/rtld-elf/Makefile
Modified: head/libexec/rtld-elf/Makefile
==============================================================================
--- head/libexec/rtld-elf/Makefile Thu Nov 11 22:35:42 2010
(r215147)
+++ head/libexec/rtld-elf/Makefile Thu Nov 11 22:53:55 2010
(r215148)
@@ -29,7 +29,12 @@ SYMLINKS= ${BINDIR}/${PROG} /usr/libexec
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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"