summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2014-08-13 15:56:52 +0000
committerjoerg <joerg@NetBSD.org>2014-08-13 15:56:52 +0000
commit5d5f895c03f6fda3c6f1b8134018d1b8863d00a9 (patch)
tree3f1456638822de4a72fb93ab72a6f4c9c91e153e /libexec
parent5514ebec7bc6fcef0c0f5bcc24ec2821f6176c21 (diff)
Build position independent on PPC64, too.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.elf_so/arch/powerpc/Makefile.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ld.elf_so/arch/powerpc/Makefile.inc b/libexec/ld.elf_so/arch/powerpc/Makefile.inc
index a859f74e328..717dcbcf67e 100644
--- a/libexec/ld.elf_so/arch/powerpc/Makefile.inc
+++ b/libexec/ld.elf_so/arch/powerpc/Makefile.inc
@@ -1,16 +1,16 @@
-# $NetBSD: Makefile.inc,v 1.13 2014/03/06 07:47:39 matt Exp $
+# $NetBSD: Makefile.inc,v 1.14 2014/08/13 15:56:52 joerg Exp $
SRCS+= ppc_reloc.c
LDFLAGS+= -Wl,-e,_rtld_start
# XXX Should not be in CPPFLAGS!
+CPPFLAGS+= -fpic
+
.if ${LDELFSO_MACHINE_ARCH} == "powerpc64"
SRCS+= rtld_start64.S
CPPFLAGS+= -DELFSIZE=64
.else
SRCS+= rtld_start.S
-CPPFLAGS+= -fpic
CPPFLAGS+= -DELFSIZE=32
LDFLAGS+= -Wl,--script,${.CURDIR}/arch/powerpc/ld.so.script
.endif
-