Module Name:    src
Committed By:   matt
Date:           Sun Mar  2 03:33:29 UTC 2014

Modified Files:
        src/share/mk: bsd.own.mk

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


To generate a diff of this commit:
cvs rdiff -u -r1.774 -r1.775 src/share/mk/bsd.own.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.774 src/share/mk/bsd.own.mk:1.775
--- src/share/mk/bsd.own.mk:1.774	Sat Mar  1 20:34:17 2014
+++ src/share/mk/bsd.own.mk	Sun Mar  2 03:33:29 2014
@@ -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.sparc64=	sparc64
 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"

Reply via email to