bug-mes
[Top][All Lists]
Advanced

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

[PATCH master] Support and pass "-marm".


From: Danny Milosavljevic
Subject: [PATCH master] Support and pass "-marm".
Date: Tue, 2 Jun 2020 00:03:03 +0200

* build-aux/cflags.sh: Pass "-marm" for ARM.
* build-aux/check.sh.in: Pass "-marm" for ARM.
* module/mescc/mescc.scm: Accept "-marm".
---
 build-aux/cflags.sh    | 6 ++++++
 build-aux/check.sh.in  | 3 +++
 module/mescc/mescc.scm | 3 ++-
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/build-aux/cflags.sh b/build-aux/cflags.sh
index 2ce778a7..013e7dcd 100644
--- a/build-aux/cflags.sh
+++ b/build-aux/cflags.sh
@@ -50,6 +50,12 @@ if test $mes_libc = mes; then
 fi
 LIBS=-lc
 
+if test $mes_cpu = arm; then
+    AM_CFLAGS="$AM_CFLAGS
+-marm
+"
+fi
+
 export AM_CFLAGS CFLAGS
 export AM_CPPFLAGS CPPFLAGS
 export AM_LDFLAGS LDFLAGS
diff --git a/build-aux/check.sh.in b/build-aux/check.sh.in
index 7d13f098..e692bc53 100644
--- a/build-aux/check.sh.in
+++ b/build-aux/check.sh.in
@@ -35,6 +35,9 @@ if $courageous; then
 fi
 
 CFLAGS=
+if test $mes_cpu = arm; then
+    CFLAGS="-marm"
+fi
 if test $mes_libc = mes; then
     CFLAGS="${CFLAGS}
 -static
diff --git a/module/mescc/mescc.scm b/module/mescc/mescc.scm
index 353b0258..d54d620d 100644
--- a/module/mescc/mescc.scm
+++ b/module/mescc/mescc.scm
@@ -300,7 +300,8 @@
          (arch (option-ref options 'arch #f)))
     (if machine (cond ((member arch '("x86" "x86_64")) (cond ((equal? machine 
"32") "x86")
                                                              ((equal? machine 
"64") "x86_64")))
-                      ((equal? arch "arm") (cond ((equal? machine "32") 
"arm"))))
+                      ((equal? arch "arm") (cond ((equal? machine "32") "arm")
+                                                 ((equal? machine "arm") 
"arm"))))
         arch)))
 
 (define (mescc:get-host options)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]