diff options
author | dos-reis <gdr@axiomatics.org> | 2010-08-15 04:51:44 +0000 |
---|---|---|
committer | dos-reis <gdr@axiomatics.org> | 2010-08-15 04:51:44 +0000 |
commit | a88f78e5d08f790f8be05e4fddbb99748f908630 (patch) | |
tree | 2f76a24fb770bbd376f17ed0386e7c6ec8e7e0ae /config/open-axiom.m4 | |
parent | d7cc951908ac7f74318a08ed7f2e64768b971f00 (diff) | |
download | open-axiom-a88f78e5d08f790f8be05e4fddbb99748f908630.tar.gz |
* config/var-def.mk (CPPFLAGS): New expanded variable.
(LDFLAGS): Likewise.
(COMPILE): Include CPPFLAGS.
(CXXCOMPILE): Likewise.
(LINK): Include LDFLAGS.
(CXXLINK): Likewise.
(CXXLINK_SHRLIB): New.
* config/open-axiom.m4 (OPENAXIOM_HOST_DATA_PROPERTIES): Move
ABI flags setting to OPENAXIOM_HOST_COMPILERS. The CPPFLAGS and
LDFLAGS instead of CFLAGS and CXXFLAGS.
Diffstat (limited to 'config/open-axiom.m4')
-rw-r--r-- | config/open-axiom.m4 | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/config/open-axiom.m4 b/config/open-axiom.m4 index 1c9332ab..e868a77b 100644 --- a/config/open-axiom.m4 +++ b/config/open-axiom.m4 @@ -189,8 +189,19 @@ AC_DEFUN([OPENAXIOM_HOST_COMPILERS],[ OPENAXIOM_PROG_LISP OPENAXIOM_LISP_FLAVOR($axiom_lisp) OPENAXIOM_REJECT_ROTTED_LISP($AXIOM_LISP) +OPENAXIOM_HOST_LISP_CPU_PRECISION AC_PROG_CC AC_PROG_CXX +## Augment C and C++ compiler flags with ABI directives as appropriate. +case $GCC in + yes) + CPPFLAGS="$CPPFLAGS -m$openaxiom_host_lisp_precision" + LDFLAGS="$LDFLAGS -m$openaxiom_host_lisp_precision" + ;; + no) + # cross fingers and pray. + ;; +esac OPENAXIOM_SATISFY_GCL_NEEDS AC_PROG_CPP ]) @@ -406,7 +417,6 @@ dnl ------------------------------------ dnl -- OPENAXIOM_HOST_DATA_PROPERTIES -- dnl ------------------------------------ AC_DEFUN([OPENAXIOM_HOST_DATA_PROPERTIES],[ -OPENAXIOM_HOST_LISP_CPU_PRECISION ## Byte order of the host. AC_C_BIGENDIAN AC_CHECK_HEADERS([stdint.h inttypes.h]) @@ -421,15 +431,4 @@ fi AC_DEFINE_UNQUOTED([OPENAXIOM_HOST_LISP_PRECISION], [$openaxiom_host_lisp_precision], [The width of the host Lisp and CPU registers.]) - -## Augment compiler flags with ABI directives as appropriate. -case $GCC in - yes) - CFLAGS="$CFLAGS -m$openaxiom_host_lisp_precision" - CXXFLAGS="$CXXFLAGS -m$openaxiom_host_lisp_precision" - ;; - no) - # cross fingers and pray. - ;; -esac ]) |