Re: Universal build of cranky open source lib with a configure script
Re: Universal build of cranky open source lib with a configure script
- Subject: Re: Universal build of cranky open source lib with a configure script
- From: "Peter O'Gorman" <email@hidden>
- Date: Fri, 26 Jan 2007 07:59:18 +0900
On Jan 26, 2007, at 4:18 AM, Shamyl Zakariya wrote:
On Jan 24, 2007, at 6:33 PM, Peter O'Gorman wrote:
Don't set --host or --build etc.
./configure .... CFLAGS='-Os -arch ppc -arch i386 -isysroot /
Developer/SDks/MacOSX10.4u.sdk' CXXFLAGS='-Os -arch ppc -arch i386
-isysroot /Developer/SDks/MacOSX10.4u.sdk' LDFLAGS='-arch ppc -
arch i386 -isysroot /Developer/SDks/MacOSX10.4u.sdk'; make
should just work. If not, please send me the relevant chunk of
build log.
if g++ -DHAVE_CONFIG_H -I. -I. -I../../include/ode -fomit-frame-
pointer -ffast-math -I../../include -I../.. -fomit-frame-pointer -
ffast-math -MT dstest-dstest.o -MD -MP -MF ".deps/dstest-
dstest.Tpo" -c -o dstest-dstest.o `test -f 'dstest.cpp' || echo
'./'`dstest.cpp; \
then mv -f ".deps/dstest-dstest.Tpo" ".deps/dstest-dstest.Po"; else
rm -f ".deps/dstest-
Okay, CXXFLAGS are not getting used. Try this:
./configure ... CC='gcc -arch ppc -arch i386' CXX='g++ -arch ppc -
arch i386' CXXCPP='g++ -E' CPP='gcc -E' --disable-dependency-tracking
LDFLAGS='-arch ppc -arch i386'; make
This sets the compiler vars rather than cflags/cxxflags, so they
should end up being used. Because the compiler is being set we need
to set the preprocessor too, otherwise configure would try to use
'gcc -arch ppc -arch i386 -E' to preprocess, which does not work.
Note that you need to bug upstream to use CFLAGS/CXXFLAGS it is not
nice to ignore these variables.
Peter
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden