Make it build with arm ... hopefully

OBS-URL: https://build.opensuse.org/package/show/devel:languages:misc/clisp?expand=0&rev=59
This commit is contained in:
Dr. Werner Fink 2016-11-29 17:04:59 +00:00 committed by Git OBS Bridge
parent 875e388e05
commit c66b7c9077

View File

@ -1,12 +1,12 @@
---
configure | 4 ++--
src/lispbibl.d | 16 +++++++++++-----
src/makemake.in | 12 +++++++++++-
utils/modprep.lisp | 2 +-
4 files changed, 25 insertions(+), 9 deletions(-)
clisp-536a48a9/configure | 4 ++--
clisp-536a48a9/src/lispbibl.d | 16 +++++++++++-----
clisp-536a48a9/src/makemake.in | 15 ++++++++++++++-
clisp-536a48a9/utils/modprep.lisp | 2 +-
4 files changed, 28 insertions(+), 9 deletions(-)
--- a/configure
+++ b/configure
--- clisp-536a48a9/configure
+++ clisp-536a48a9/configure 2016-11-29 16:47:05.962094941 +0000
@@ -392,11 +392,11 @@ do
passnext=both ;;
@ -21,8 +21,8 @@
makemake_args="$makemake_args --vimdir="
prev=vimdir
passnext=both ;;
--- a/src/lispbibl.d
+++ b/src/lispbibl.d
--- clisp-536a48a9/src/lispbibl.d
+++ clisp-536a48a9/src/lispbibl.d 2016-11-29 16:47:05.966094859 +0000
@@ -66,7 +66,7 @@
#define PC386 /* IBMPC-compatible with 80386/80486-processor */
#endif
@ -69,8 +69,8 @@
#endif
#elif !(oint_addr_shift==0)
#define type_data_object(type,data) \
--- a/src/makemake.in
+++ b/src/makemake.in
--- clisp-536a48a9/src/makemake.in
+++ clisp-536a48a9/src/makemake.in 2016-11-29 17:01:02.228991542 +0000
@@ -246,6 +246,9 @@ verbose=${CLISP_MAKEMAKE_VERBOSE:-false}
# Handle --with-... arguments
while test -z "$endofargs"; do
@ -89,15 +89,18 @@
cpu=$host_cpu_c_abi
if test -z "$cpu"; then
echo "$0: WARNING: host_cpu_c_abi is void; using host_cpu=${host_cpu}" >&2
@@ -1125,6 +1129,7 @@ if test -z "$cpu"; then
@@ -1125,6 +1129,10 @@ if test -z "$cpu"; then
* ) cpu=${host_cpu}
esac
fi
+case "$cpu" in
+ arm*) cpu=arm ;;
+esac
+set +x
test "${verbose}" = true -o "${verbose}" = yes && \
cat <<EOF >&2
@@ -1272,6 +1277,10 @@ if [ $XCC_GCC = true ] ; then
@@ -1272,6 +1280,10 @@ if [ $XCC_GCC = true ] ; then
XCFLAGS=${XCFLAGS}" -pthread"
fi
@ -108,7 +111,7 @@
else
if [ $TSYS = sun4 -a $CROSS = false ] ; then
@@ -3417,8 +3426,9 @@ if [ $CROSS = false ] ; then
@@ -3417,8 +3429,9 @@ if [ $CROSS = false ] ; then
echol
if [ "${with_dynamic_modules}" != no ]; then
depends="full install-modules force"
@ -119,8 +122,8 @@
echotab "mkdir -p \$(DESTDIR)\$(lisplibdir)/dynmod"
echotab "DESTDIR=\`cd \"\$(DESTDIR)\$(lisplibdir)\"; pwd\` CLISP='./clisp -q -norc' ./clisp-link install \$(MODULES)"
echol
--- a/utils/modprep.lisp
+++ b/utils/modprep.lisp
--- clisp-536a48a9/utils/modprep.lisp
+++ clisp-536a48a9/utils/modprep.lisp 2016-11-29 16:47:05.970094777 +0000
@@ -327,7 +327,7 @@ FOO(bar,baz,zot) ==> FOO; (bar baz zot);
((or (char= cc #\_) (char= cc #\-)) (write-char #\_ out))
(t (format out "_~2,'0x" (char-code cc))))))