Re: configuring for Mac

Cesar Gutierrez Corea <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Stipe,

They are in the specific configuration for *apple-darwin* in  
configure.in, I think the purpose of those flags is that if configure  
finds the SDK to build Universal Binaries (PPC and i386) it will use  
it, but this flags has a conflict with -MM option (since it can only  
be used with one architecture).

"gcc: -E, -S, -save-temps and -M options are not allowed with  
multiple -arch flags"

On Jan 12, 2006, at 2:28 PM, Stipe Tolj wrote:

> Cesar Gutierrez Corea wrote:
>
>> This is for the first warning:
>>    gcc -D_REENTRANT=1 -I. -Igw  -DDARWIN=1 -L/Developer/SDKs/  
>> MacOSX10.4u.sdk/usr/lib -I/Developer/SDKs/MacOSX10.4u.sdk/usr/ 
>> include  -arch ppc -arch i386 -I/usr/include/libxml2 -I/usr/ 
>> include/openssl - MM $dir/*.c | sed "s:^[^ ^#]:$dir/&:"; done  
>> > .depend
>> And this is for the error:
>> gcc -D_REENTRANT=1 -I. -Igw  -DDARWIN=1 -L/Developer/SDKs/  
>> MacOSX10.4u.sdk/usr/lib -I/Developer/SDKs/MacOSX10.4u.sdk/usr/ 
>> include  -arch ppc -arch i386 -I/usr/include/libxml2 -I/usr/ 
>> include/openssl  - o wmlscript/wmlsc wmlscript/wmlsc.o libgw.a  
>> libwmlscript.a libwap.a  libgwlib.a -lssl -lresolv -lm  -lpthread - 
>> liconv -L/usr/lib -lxml2 - lz -lpthread -liconv -lm -L/usr/lib - 
>> lcrypto -lssl
>
> ok, so where do that '-arch ppc -arch i386' cflags come from?
>
> @Aarno: I don't see any impact from yout patch to this flag things?
>
> Stipe
>
> -------------------------------------------------------------------
> Kölner Landstrasse 419
> 40589 Düsseldorf, NRW, Germany
>
> tolj.org system architecture      Kannel Software Foundation (KSF)
> http://www.tolj.org/              http://www.kannel.org/
>
> mailto:st_{at}_tolj.org           mailto:stolj_{at}_kannel.org
> -------------------------------------------------------------------

--
Cesar Gutierrez Corea
Software Engineer
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.