If you are using aapcs, you must be using INITFINI

This commit is contained in:
matt 2013-01-22 22:49:09 +00:00
parent 9263138f08
commit 552187152c
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,7 @@
# $NetBSD: Makefile.inc,v 1.2 2012/09/16 13:46:49 skrll Exp $
# $NetBSD: Makefile.inc,v 1.3 2013/01/22 22:49:48 matt Exp $
CPPFLAGS+= -DELFSIZE=32
.if ${MACHINE_ARCH} == "earm" || ${MACHINE_ARCH} == "earmeb" \
|| ${CPUFLAGS:M-mabi=aapcs*} != ""
CPPFLAGS+= -DHAVE_INITFINI_ARRAY
.endif

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.12 2012/08/15 03:46:07 matt Exp $
# $NetBSD: Makefile.inc,v 1.13 2013/01/22 22:49:09 matt Exp $
SRCS+= rtld_start.S mdreloc.c
@ -6,7 +6,8 @@ SRCS+= rtld_start.S mdreloc.c
CPPFLAGS+= -fpic
CPPFLAGS+= -DELFSIZE=32
.if ${MACHINE_ARCH} == "earm" || ${MACHINE_ARCH} == "earmeb"
.if ${MACHINE_ARCH} == "earm" || ${MACHINE_ARCH} == "earmeb" || \
${CFLAGS:Mabi=aapcs} != ""
CPPFLAGS+= -DHAVE_INITFINI_ARRAY
.endif