summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2010-07-11 07:43:12 +0000
committermrg <mrg@NetBSD.org>2010-07-11 07:43:12 +0000
commitc8cf27943db9d4a267bb25a2044856e7c90b644e (patch)
treec2837c5fb7adbbf86b93b8f3c3937193ab9faea2 /libexec
parent6479f6e5b4f9872192d72f3ffab591a7f194051a (diff)
make sure to look in CFLAGS, COPTS and CPPFLAGS for abi options.
fixes sgimips64 build of n64 ld.elf_so.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.elf_so/arch/mips/Makefile.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ld.elf_so/arch/mips/Makefile.inc b/libexec/ld.elf_so/arch/mips/Makefile.inc
index 9571a489c44..d5169f924e4 100644
--- a/libexec/ld.elf_so/arch/mips/Makefile.inc
+++ b/libexec/ld.elf_so/arch/mips/Makefile.inc
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile.inc,v 1.18 2009/12/18 17:10:07 mrg Exp $
+# $NetBSD: Makefile.inc,v 1.19 2010/07/11 07:43:12 mrg Exp $
SRCS+= rtld_start.S mips_reloc.c
COPTS+= -G0
-ABI64?= ${CFLAGS:M-mabi=64}
-ABIO64?= ${CFLAGS:M-mabi=o64}
+ABI64?= ${CFLAGS:M-mabi=64} ${CPPFLAGS:M-mabi=64} ${COPTS:M-mabi=64}
+ABIO64?= ${CFLAGS:M-mabi=o64} ${CPPFLAGS:M-mabi=o64} ${COPTS:M-mabi=o64}
.if !empty(ABI64) || !empty(ABIO64)
CPPFLAGS+= -DELFSIZE=64
.else