[vtkusers] How to build libraries for both 32-bit and 64-bit architectures

Martin Costabel costabel at wanadoo.fr
Sun Sep 28 14:44:27 EDT 2008


Elvis Dowson wrote:
[]
> ./configure 
> make
> 
> This results in the following error for libpng-1.2.31
> 
> /bin/sh ./libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. 
>  -DPNG_CONFIGURE_LIBPNG    -arch i386 -arch x86_64 -MT 
> libpng12_la-png.lo -MD -MP -MF .deps/libpng12_la-png.Tpo -c -o 
> libpng12_la-png.lo `test -f 'png.c' || echo './'`png.c
> libtool: compile:  gcc -DHAVE_CONFIG_H -I. -DPNG_CONFIGURE_LIBPNG -arch 
> i386 -arch x86_64 -MT libpng12_la-png.lo -MD -MP -MF 
> .deps/libpng12_la-png.Tpo -c png.c  -fno-common -DPIC -o 
> .libs/libpng12_la-png.o
> gcc-4.0: -E, -S, -save-temps and -M options are not allowed with 
> multiple -arch flags
> make[1]: *** [libpng12_la-png.lo] Error 1
> make: *** [all] Error 2
> 
> 
> How can I disable -save-temps and -M options?
> 
> The ./configure --help doesnt give much or document this.
[]

Try this one:

>   --disable-dependency-tracking  speeds up one-time build

-- 
Martin






More information about the vtkusers mailing list