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:
parent
fed3c1df66
commit
9108f12f6b
@ -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
|
||||
|
3
libexec/ld.elf_so/arch/i386/Makefile.ld32
Normal file
3
libexec/ld.elf_so/arch/i386/Makefile.ld32
Normal file
@ -0,0 +1,3 @@
|
||||
# $NetBSD: Makefile.ld32,v 1.1 2009/01/06 02:15:06 mrg Exp $
|
||||
|
||||
CPPFLAGS+= -DRTLD_ARCH_SUBDIR=\"i386\"
|
@ -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
|
||||
|
3
libexec/ld.elf_so/arch/sparc/Makefile.ld32
Normal file
3
libexec/ld.elf_so/arch/sparc/Makefile.ld32
Normal file
@ -0,0 +1,3 @@
|
||||
# $NetBSD: Makefile.ld32,v 1.1 2009/01/06 02:15:06 mrg Exp $
|
||||
|
||||
CPPFLAGS+= -DRTLD_ARCH_SUBDIR=\"sparc\"
|
Loading…
Reference in New Issue
Block a user