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
This commit is contained in:
Dimitry Andric 2010-11-11 22:53:55 +00:00
parent da2bbf0cbd
commit b9c727d84e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=215148

View File

@ -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