Subject: | Tk (png/zlib) assumes gcc on solaris |
The included zlib distribution is incorrectly configured for Solaris if Perl is compiled with Sun's cc and gcc is also available. The problem is that zlib's configure sees gcc and provides gcc CFLAGS. But, PNG/Makefile overrides the value of CC (using that in Perl's Config) but not CFLAGS,
thus leading to passing gcc options to Sun's cc, which doesn't recognize them. In particular it passes -O3, which is ignored (loudly) during
compiles, but causes a linker failure during links. The solution that
seems to work is do the equivalent of
env CC=$Config{'cc'} sh ./configure