Using cpan to install Tk (which defaults to 804.29), using a terminal
window on Mac OS X, the many compiles proceed normally until near the
end it reachs libpng, then fails with
gcc-4.2: -E, -S, -save-temps and -M options are not allowed with
multiple -arch flags
Any suggestions?
The complete command in error is
gcc-4.2 -DHAVE_CONFIG_H -I. -I. -I. -DPNG_CONFIGURE_LIBPNG -
DPNG_NO_ASSEMBLER_CODE -arch x86_64 -arch i386 -arch ppc -g -pipe -fno-
common -DPERL_DARWIN -fno-strict-aliasing -I/usr/local/include -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
It apparently is generated in the libpng/Makefile lines as follows:
libpng_la-png.lo: png.c
if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $
(DEFAULT_INCLUDES) $(INCLUDES) $(libpng_la_CPPFLAGS) $(CPPFLAGS) $
(AM_CFLAGS) -MT libpng_la-png.lo -MD -MP -MF "$(DEPDIR)/libpng_la-
png.Tpo" -c -o libpng_la-png.lo `test -f 'png.c' || echo '$
(srcdir)/'`png.c; \
then mv -f "$(DEPDIR)/libpng_la-png.Tpo" "$(DEPDIR)/libpng_la-
png.Plo"; else rm -f "$(DEPDIR)/libpng_la-png.Tpo"; exit 1; fi
# source='png.c' object='libpng_la-png.lo' libtool=yes \
# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \
# $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES)
$(INCLUDES) $(libpng_la_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -
c -o libpng_la-png.lo `test -f 'png.c' || echo '$(srcdir)/'`png.c