Support and pass "-marm".

* build-aux/cflags.sh,
build-aux/check.sh.in: Pass "-marm" for ARM.
* module/mescc/mescc.scm: Accept it.
This commit is contained in:
Danny Milosavljevic 2020-06-02 00:03:03 +02:00
parent fbc249832c
commit 6183816f83
No known key found for this signature in database
GPG key ID: E71A35542C30BAA5
3 changed files with 11 additions and 1 deletions

View file

@ -50,6 +50,12 @@ if test $mes_libc = mes; then
fi fi
LIBS=-lc LIBS=-lc
if test $mes_cpu = arm; then
AM_CFLAGS="$AM_CFLAGS
-marm
"
fi
export AM_CFLAGS CFLAGS export AM_CFLAGS CFLAGS
export AM_CPPFLAGS CPPFLAGS export AM_CPPFLAGS CPPFLAGS
export AM_LDFLAGS LDFLAGS export AM_LDFLAGS LDFLAGS

View file

@ -35,6 +35,9 @@ if $courageous; then
fi fi
CFLAGS= CFLAGS=
if test $mes_cpu = arm; then
CFLAGS="-marm"
fi
if test $mes_libc = mes; then if test $mes_libc = mes; then
CFLAGS="${CFLAGS} CFLAGS="${CFLAGS}
-static -static

View file

@ -299,7 +299,8 @@
(arch (option-ref options 'arch #f))) (arch (option-ref options 'arch #f)))
(if machine (cond ((member arch '("x86" "x86_64")) (cond ((equal? machine "32") "x86") (if machine (cond ((member arch '("x86" "x86_64")) (cond ((equal? machine "32") "x86")
((equal? machine "64") "x86_64"))) ((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))) arch)))
(define (mescc:get-host options) (define (mescc:get-host options)