[Zlib-devel] CHOST option
Török Edwin
edwintorok at gmail.com
Sun May 2 04:39:50 EDT 2010
On 05/01/2010 09:57 PM, Enrico Weigelt wrote:
>
> <snip>
>
> Here's a first cleanup attempt:
>
> http://repo.or.cz/w/oss-qm-packages.git/commitdiff/26c7918fdb92e85d4f8c736be906b31a5b4201b7?hp=00de72ca6efd5d320aee4e6bcb47c66bb474fad2
>
A better way to check for a GCC compatible compiler is to check whether
the compiler defines __GNUC__.
Then it'll work with clang too (and probably Intel's C compiler which
defines __GNUC__).
clang supports -fPIC (and most of the commandline flags that GCC does),
but its version doesn't say gcc, and then zlib's configure thinks it
can't create shared libs:
clang version 1.1 (branches/release_27)
Target: x86_64-unknown-linux-gnu
Thread model: posix
Best regards,
--Edwin
More information about the Zlib-devel
mailing list