Building for several architectures on a Mac

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

 



Hi,

I've been building pjsip for i386, x86_64 and ppc on a 64-bit Intel
Mac like that:

$ CFLAGS="-O2 -arch i386 -arch x86_64 -arch ppc" LDFLAGS="-arch i386
-arch x86_64 -arch ppc" ./configure
$ make


But since 1.7 it is broken. After running 'make' it's complaining
about an -o flag:

/usr/bin/../libexec/gcc/darwin/i386/as: Flag option -o has already been seen!
/usr/bin/../libexec/gcc/darwin/x86_64/as: Flag option -o has already been seen!
/usr/bin/../libexec/gcc/darwin/ppc/as: Flag option -o has already been seen!


And then:

a - output/pjlib-i386-apple-darwin10.5.0/string.o
ar: output/pjlib-i386-apple-darwin10.5.0/string.o: No such file or directory
a - output/pjlib-i386-apple-darwin10.5.0/timer.o
ar: output/pjlib-i386-apple-darwin10.5.0/timer.o: No such file or directory
a - output/pjlib-i386-apple-darwin10.5.0/types.o
ar: output/pjlib-i386-apple-darwin10.5.0/types.o: No such file or directory
make[2]: *** [../lib/libpj-i386-apple-darwin10.5.0.a] Error 1
make[1]: *** [pjlib] Error 2
make: *** [all] Error 1


The last release where it worked was 1.6.

Anyway, is this the right way to build pjsip for several
architectures? I need to support 32-bit and 64-bit Intel Macs, and
PowerPC Macs.

Alexei



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux