From 897f4d95c446cbb42f5e48354a6ebfb90e411580 Mon Sep 17 00:00:00 2001 From: rtoy <rtoy> Date: Fri, 21 Jan 2011 15:44:58 +0000 Subject: [PATCH] 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). --- code/foreign.lisp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/foreign.lisp b/code/foreign.lisp index ff8c2ecb2..406eea019 100644 --- a/code/foreign.lisp +++ b/code/foreign.lisp @@ -5,7 +5,7 @@ ;;; Carnegie Mellon University, and has been placed in the public domain. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/foreign.lisp,v 1.59 2010/04/20 17:57:44 rtoy Rel $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/foreign.lisp,v 1.60 2011/01/21 15:44:58 rtoy Exp $") ;;; ;;; ********************************************************************** ;;; @@ -881,6 +881,8 @@ environment passed to Lisp." #+(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 -- GitLab