Source-Changes-HG archive

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

[src/trunk]: src/share/mk Compile ARM apcs with -marm (no thumb).



details:   https://anonhg.NetBSD.org/src/rev/b8d2100c886e
branches:  trunk
changeset: 338508:b8d2100c886e
user:      matt <matt%NetBSD.org@localhost>
date:      Thu May 28 04:08:48 2015 +0000

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

diffstat:

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

diffs (17 lines):

diff -r 35a9415e87b3 -r b8d2100c886e share/mk/bsd.own.mk
--- a/share/mk/bsd.own.mk       Thu May 28 02:24:23 2015 +0000
+++ b/share/mk/bsd.own.mk       Thu May 28 04:08:48 2015 +0000
@@ -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 @@
 .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
 



Home | Main Index | Thread Index | Old Index