Package: open-axiom
Version: 1.4.1+svn~2626-2
Severity: Important
Tags: patch

The package fails to build on many arches, because configure
erroneously tries to add -m32/-m64 in CXXFLAGS/LDFLAGS.
This should be left out, IMHO, as after some quick tests,
host_lisp_precision was equal to the architecture bitsize (i.e. 64-bits
on 64-bit systems, and 32-bits on 32-bit systems). Commenting this part
in config/open-axiom.m4 enabled the successful build of the package on
both amd64 and armhf (those I could test).

Unless there is an important reason to leave the explicit -m32/-m64 in
there I'd suggest it's commented out.

Regards

Konstantinos
diff -ruN open-axiom-1.4.1+svn~2626/config/open-axiom.m4 open-axiom-1.4.1+svn~2626.mine/config/open-axiom.m4
--- open-axiom-1.4.1+svn~2626/config/open-axiom.m4	2012-02-03 11:21:00.000000000 +0000
+++ open-axiom-1.4.1+svn~2626.mine/config/open-axiom.m4	2012-09-12 13:26:16.342818242 +0000
@@ -216,13 +216,13 @@
 fi
 ## Augment C and C++ compiler flags with ABI directives as appropriate
 ## before we proceed to infer other host datatype properties.
-if test -n "$openaxiom_host_lisp_precision"; then
-   if test x$oa_gnu_compiler = xyes; then
-     CPPFLAGS="$CPPFLAGS -m$openaxiom_host_lisp_precision"
-     LDFLAGS="$LDFLAGS -m$openaxiom_host_lisp_precision"
-   ## else, cross fingers and pray.
-   fi
-fi
+#if test -n "$openaxiom_host_lisp_precision"; then
+#   if test x$oa_gnu_compiler = xyes; then
+#     CPPFLAGS="$CPPFLAGS -m$openaxiom_host_lisp_precision"
+#     LDFLAGS="$LDFLAGS -m$openaxiom_host_lisp_precision"
+#   ## else, cross fingers and pray.
+#   fi
+#fi
 OPENAXIOM_SATISFY_GCL_NEEDS
 AC_PROG_CPP
 AC_PROG_CXXCPP

Reply via email to