summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authormatt <matt@NetBSD.org>2014-08-23 02:20:55 +0000
committermatt <matt@NetBSD.org>2014-08-23 02:20:55 +0000
commitff91287c6d4fbdcc2693ba0d72f7923a33bfa532 (patch)
tree48b77bd576875719041179066678787b4423b7cd /compat
parent840dafcf318472eb560007bba4563021231eff1e (diff)
Add
LDFLAGS+= -Wl,-m,elf32ppc_nbsd
Diffstat (limited to 'compat')
-rw-r--r--compat/powerpc64/powerpc/bsd.powerpc.mk7
1 files changed, 6 insertions, 1 deletions
diff --git a/compat/powerpc64/powerpc/bsd.powerpc.mk b/compat/powerpc64/powerpc/bsd.powerpc.mk
index 15ceacf1bba..f11beb63619 100644
--- a/compat/powerpc64/powerpc/bsd.powerpc.mk
+++ b/compat/powerpc64/powerpc/bsd.powerpc.mk
@@ -1,6 +1,10 @@
-# $NetBSD: bsd.powerpc.mk,v 1.2 2014/03/07 05:48:30 matt Exp $
+# $NetBSD: bsd.powerpc.mk,v 1.3 2014/08/23 02:20:55 matt Exp $
LD+= -m elf32ppc_nbsd
+.if empty(LDFLAGS:M*elf32ppc_nbsd*)
+LDFLAGS+= -Wl,-m,elf32ppc_nbsd
+.endif
+.ifndef MLIBDIR
MLIBDIR= powerpc
LIBC_MACHINE_ARCH= ${MLIBDIR}
COMMON_MACHINE_ARCH= ${MLIBDIR}
@@ -13,3 +17,4 @@ LDELFSO_MACHINE_ARCH= ${MLIBDIR}
GOMP_MACHINE_ARCH= ${MLIBDIR}
.include "${.PARSEDIR}/../../m32.mk"
+.endif