Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Add OBJECT_FMTS which is a list of object formats s...



details:   https://anonhg.NetBSD.org/src/rev/9cfc69cb8df0
branches:  trunk
changeset: 327218:9cfc69cb8df0
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Mar 02 03:33:29 2014 +0000

description:
Add OBJECT_FMTS which is a list of object formats supported by the MACHINE_ARCH

diffstat:

 share/mk/bsd.own.mk |  12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diffs (26 lines):

diff -r 3a7190a2c4cf -r 9cfc69cb8df0 share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Sun Mar 02 03:17:14 2014 +0000
+++ b/share/mk/bsd.own.mk       Sun Mar 02 03:33:29 2014 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: bsd.own.mk,v 1.774 2014/03/01 20:34:17 tsutsui Exp $
+#      $NetBSD: bsd.own.mk,v 1.775 2014/03/02 03:33:29 matt Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -515,6 +515,16 @@
 MACHINES.vax=          vax
 MACHINES.x86_64=       amd64
 
+# for crunchide & ldd, define the OBJECT_FMTS used by a MACHINE_ARCH
+#
+OBJECT_FMTS=
+.if    ${MACHINE_ARCH} != "alpha" 
+OBJECT_FMTS+=  elf32
+.endif
+.if    ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH:M*64*} != ""
+OBJECT_FMTS+=  elf64
+.endif
+
 # OBJCOPY flags to create a.out binaries for old firmware
 # shared among src/distrib and ${MACHINE}/conf/Makefile.${MACHINE}.inc
 .if ${MACHINE_CPU} == "arm"



Home | Main Index | Thread Index | Old Index