Module Name:    src
Committed By:   matt
Date:           Thu May 28 04:08:48 UTC 2015

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

Log Message:
Compile ARM apcs with -marm (no thumb).


To generate a diff of this commit:
cvs rdiff -u -r1.849 -r1.850 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.849 src/share/mk/bsd.own.mk:1.850
--- src/share/mk/bsd.own.mk:1.849	Thu May 21 00:12:10 2015
+++ src/share/mk/bsd.own.mk	Thu May 28 04:08:48 2015
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.849 2015/05/21 00:12:10 rjs Exp $
+#	$NetBSD: bsd.own.mk,v 1.850 2015/05/28 04:08:48 matt Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -820,6 +820,7 @@ MACHINE_GNU_PLATFORM?=${MACHINE_GNU_ARCH
 .if !empty(MACHINE_ARCH:M*arm*)
 # Flags to pass to CC for using the old APCS ABI on ARM for compat or stand.
 ARM_APCS_FLAGS=	-mabi=apcs-gnu -mfloat-abi=soft
+ARM_APCS_FLAGS+=${${ACTIVE_CC} == "gcc":? -marm :}
 ARM_APCS_FLAGS+=${${ACTIVE_CC} == "clang":? -target ${MACHINE_GNU_ARCH}--netbsdelf -B ${TOOLDIR}/${MACHINE_GNU_PLATFORM}/bin :}
 .endif
 

Reply via email to