[iolib-devel] Making -m<arch> conditional on x86 (etc.)
David Lichteblau
david at lichteblau.com
Fri Apr 27 19:37:32 UTC 2012
Hi,
as discussed on IRC, here is an attempt at fixing the build on ARM.
Tested (briefly) with CCL.
https://gitorious.org/~lichteblau/iolib/lichteblau-iolib/commit/34a537b1
Thanks
d.
------------------------------------------------------------
>From 34a537b10142a0d98e474301add11790536ee9aa Mon Sep 17 00:00:00 2001
From: David Lichteblau <david at lichteblau.com>
Date: Fri, 27 Apr 2012 12:34:45 +0000
Subject: [PATCH] Conditionalize -m<arch> flag on ISA features
---
src/grovel/grovel.lisp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/grovel/grovel.lisp b/src/grovel/grovel.lisp
index a1cac9e..1921b09 100644
--- a/src/grovel/grovel.lisp
+++ b/src/grovel/grovel.lisp
@@ -255,6 +255,9 @@ int main(int argc, char**argv) {
;;; FIXME: is there a better way to detect whether these flags
;;; are necessary?
(defparameter *cpu-word-size-flags*
+ #-(or x86 x86-64 sparc sparc64)
+ '()
+ #+(or x86 x86-64 sparc sparc64)
(ecase (cffi:foreign-type-size :long)
(4 (list "-m32"))
(8 (list "-m64"))))
--
1.7.10
More information about the iolib-devel
mailing list