aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2010-11-11 22:53:55 +0000
committerDimitry Andric <dim@FreeBSD.org>2010-11-11 22:53:55 +0000
commitb9c727d84e270aa45bf5a4582fc49ac698c5483c (patch)
tree6c1f5168da23b19aa17e4015f35f83a3fb229d06 /libexec
parentda2bbf0cbd9ae4762dc3ae79cbb0c36d93698d1a (diff)
Notes
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 62aaaab96a99..bc23f7c139da 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