[#7055] More on VC++ 2005 — Austin Ziegler <halostatue@...>

Okay. I've got Ruby compiling. I'm attempting to get everything in

17 messages 2006/01/05
[#7058] Re: More on VC++ 2005 — nobuyoshi nakada <nobuyoshi.nakada@...> 2006/01/06

Hi,

[#7084] mathn: ugly warnings — hadmut@... (Hadmut Danisch)

Hi,

22 messages 2006/01/10
[#7097] Re: mathn: ugly warnings — Daniel Berger <Daniel.Berger@...> 2006/01/10

Hadmut Danisch wrote:

[#7098] Design contracts and refactoring (was Re: mathn: ugly warnings) — mathew <meta@...> 2006/01/10

Daniel Berger wrote:

[#7118] Re: Design contracts and refactoring (was Re: mathn: ugly warnings) — mathew <meta@...> 2006/01/12

*Dean Wampler *<deanwampler gmail.com> writes:

[#7226] Fwd: Re: Question about massive API changes — "Sean E. Russell" <ser@...>

Hello,

23 messages 2006/01/28
[#7228] Re: Question about massive API changes — Caleb Tennis <caleb@...> 2006/01/28

>

Building fat binaries on Mac OS X

From: Neil Stevens <neil@...>
Date: 2006-01-13 13:27:28 UTC
List: ruby-core #7139
Hello,

I'm not sure if this is the right list for this, but I had some trouble
building a PowerPC + Intel binary of ruby 1.8.4 on Mac OS X.
Specifically, a define was missing, and the CC I set wasn't used to
build extensions.  It took a couple of changes to configure for me to
fix it (patch below).

How to port these changes back from configure, to the sources that
generate configure, I don't know, sorry.  But, my hope is that someone
here is much more familiar with the generation of configure, and can
port these changes back for inclusion in the next Ruby version.

For the curious, the necessary configure line for me, on OS X 10.4.4
with Xcode 2.2, was: CC="cc -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
LD="ld -syslibroot /Developer/SDKs/MacOSX10.4u.sdk" ./configure
--enable-fat-binary="ppc,i386"

thanks,

--- ruby-1.8.4/configure	2005-12-24 04:36:33.000000000 -0800
+++ Development/ruby-1.8.4/configure	2006-01-13 04:43:07.000000000 -0800
@@ -14394,7 +14394,7 @@
 	rhapsody*)	: ${LDSHARED='cc -dynamic -bundle -undefined suppress'}
 			: ${LDFLAGS=""}
 			rb_cv_dlopen=yes ;;
-	darwin*)	: ${LDSHARED='cc -dynamic -bundle -undefined suppress
-flat_namespace'}
+	darwin*)	: ${LDSHARED="\$(CC) -dynamic -bundle -undefined suppress
-flat_namespace"}
 			: ${LDFLAGS=""}
 			: ${LIBPATHENV=DYLD_LIBRARY_PATH}
 			rb_cv_dlopen=yes ;;
@@ -15385,6 +15385,11 @@
     arch="fat-${target_os}"

     cat >>confdefs.h <<_ACEOF
+#define __ARCHITECTURE__ "${arch}"
+_ACEOF
+
+
+    cat >>confdefs.h <<_ACEOF
 #define RUBY_THIN_ARCHLIB "${RUBY_LIB_PATH}/" __ARCHITECTURE__
"-${target_os}"
 _ACEOF


-- 
Neil Stevens - neil@hakubi.us

'A republic, if you can keep it.' -- Benjamin Franklin

In This Thread

Prev Next