[Zlib-devel] CHOST option
Enrico Weigelt
weigelt at metux.de
Sun May 2 12:24:04 EDT 2010
* Török Edwin <edwintorok at gmail.com> schrieb:
> 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__).
hmm, IMHO that only implies that it supports the GNU C dialect.
but what about all the command line options ?
> clang supports -fPIC (and most of the commandline flags that GCC does),
Okay, the project claims to support GCC command line options. But
I have no idea how reliable this is (especially when it comes to
shared libraries, which might have different semantics on LLVM).
And what about other compilers that define __GNUC__ ?
Perhaps we should add explicit tests for them.
cu
--
---------------------------------------------------------------------
Enrico Weigelt == metux IT service - http://www.metux.de/
---------------------------------------------------------------------
Please visit the OpenSource QM Taskforce:
http://wiki.metux.de/public/OpenSource_QM_Taskforce
Patches / Fixes for a lot dozens of packages in dozens of versions:
http://patches.metux.de/
---------------------------------------------------------------------
More information about the Zlib-devel
mailing list