move the defines for RTLD_ARCH_SUBDIR into a sub-sub-makefile so we can

grab these values via reach-over more easily.
This commit is contained in:
mrg 2009-01-06 02:15:06 +00:00
parent fed3c1df66
commit 9108f12f6b
4 changed files with 16 additions and 8 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.11 2008/10/26 07:11:54 mrg Exp $
# $NetBSD: Makefile.inc,v 1.12 2009/01/06 02:15:06 mrg Exp $
SRCS+= rtld_start.S mdreloc.c
@ -6,8 +6,9 @@ SRCS+= rtld_start.S mdreloc.c
CPPFLAGS+= -fpic
CPPFLAGS+= -DELFSIZE=32
.if defined(LD32DIR)
CPPFLAGS+= -DRTLD_ARCH_SUBDIR=\"i386\"
.endif
LDFLAGS+= -Wl,-e,.rtld_start
.if defined(LD32DIR)
.include "Makefile.ld32"
.endif

View File

@ -0,0 +1,3 @@
# $NetBSD: Makefile.ld32,v 1.1 2009/01/06 02:15:06 mrg Exp $
CPPFLAGS+= -DRTLD_ARCH_SUBDIR=\"i386\"

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.inc,v 1.11 2008/10/26 07:11:54 mrg Exp $
# $NetBSD: Makefile.inc,v 1.12 2009/01/06 02:15:06 mrg Exp $
SRCS+= rtld_start.S mdreloc.c
@ -6,8 +6,9 @@ SRCS+= rtld_start.S mdreloc.c
CPPFLAGS+= -fpic
CPPFLAGS+= -DELFSIZE=32
.if defined(LD32DIR)
CPPFLAGS+= -DRTLD_ARCH_SUBDIR=\"sparc\"
.endif
LDFLAGS+= -Wl,-e,_rtld_start
.if defined(LD32DIR)
.include "Makefile.ld32"
.endif

View File

@ -0,0 +1,3 @@
# $NetBSD: Makefile.ld32,v 1.1 2009/01/06 02:15:06 mrg Exp $
CPPFLAGS+= -DRTLD_ARCH_SUBDIR=\"sparc\"