Date: Friday, January 21, 2011 @ 10:44:58 Author: rtoy Path: /project/cmucl/cvsroot/src/code
Modified: foreign.lisp
For Darwin, we need to specify -arch i386 if we need to run ld so that we produce 32-bit binaries instead of the default 64-bit (on 10.6 and later).
--------------+ foreign.lisp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Index: src/code/foreign.lisp diff -u src/code/foreign.lisp:1.59 src/code/foreign.lisp:1.60 --- src/code/foreign.lisp:1.59 Tue Apr 20 13:57:44 2010 +++ src/code/foreign.lisp Fri Jan 21 10:44:58 2011 @@ -5,7 +5,7 @@ ;;; Carnegie Mellon University, and has been placed in the public domain. ;;; (ext:file-comment - "$Header: /project/cmucl/cvsroot/src/code/foreign.lisp,v 1.59 2010-04-20 17:57:44 rtoy Rel $") + "$Header: /project/cmucl/cvsroot/src/code/foreign.lisp,v 1.60 2011-01-21 15:44:58 rtoy Exp $") ;;; ;;; ********************************************************************** ;;; @@ -881,6 +881,8 @@ #+(or solaris linux) "-G" #+(or freebsd OpenBSD NetBSD irix) "-shared" #+darwin "-dylib" + #+darwin "-arch" + #+darwin "i386" "-o" output-file ;; Cause all specified libs to be loaded in full