discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Building on OSX 10.6


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Building on OSX 10.6
Date: Mon, 7 Dec 2009 17:13:04 -0800
User-agent: Mutt/1.5.18 (2008-05-17)

On Fri, Dec 04, 2009 at 08:55:10PM -0500, Michael Dickens wrote:
> On Dec 4, 2009, at 2:56 PM, Ed Criscuolo wrote:
>> I've decided to take this approach for now.  I've cloned the latest
>> git master, but I'm a total beginner at git.  Where's the best place
>> to insert the "-arch i386" into CFLAGS to force a 32-bit build?  Is
>> it as simple as
>>
>> ./bootstrap
>> ./configure
>> "make CFLAGS="-arch i386"
>> make check
>> sudo make install
>>
>> or does it need to go in as a switch to "configure"?
>
> Into configure, or before then; after bootstrap & before make.  You can 
> just
>
> export CFLAGS="-arch i386"
>
> and so forth, then run 'configure' & it'll pick up your shell  
> environment.  I don't think you can easily change the build environment 
> directing from 'make'.  I haven't tried this approach, but I see no 
> reason it won't work.  Do let me/the list know, and good luck! - MLD

This is the preferred way:

  ./bootstrap
  ./configure CFLAGS="-arch i386" CXXFLAGS="-arch i386"

This way configure writes the CFLAGS and CXXFLAGS values into the
generated Makefiles.

Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]