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


_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to