I've been trying to get clang working enough that I can at least get HEAD going for a build farm client, and the attached patch is the bare minimum to get it working. There may be a better way to do this, but as indicated in a past thread, the GNU_SOURCE variable does not play nicely with clang. Getting that removed does allow me to do a working make and make check. The make takes orders of magnitude longer than gcc does, but that's an issue for another day.
-- Greg Sabino Mullane g...@turnstep.com PGP Key: 0x14964AC8 201011160940 http://biglumber.com/x/web?pk=2529DF6AB8F79407E94445B4BC9B906714964AC8
diff --git a/src/template/linux b/src/template/linux index 3eb5ad2..527a559 100644 --- a/src/template/linux +++ b/src/template/linux @@ -1,7 +1,9 @@ # src/template/linux # Force _GNU_SOURCE on; plperl is broken with Perl 5.8.0 otherwise -CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" +if "$CC" = "gcc" ; then + CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE" +fi # If --enable-profiling is specified, we need -DLINUX_PROFILE PLATFORM_PROFILE_FLAGS="-DLINUX_PROFILE"
pgpfXYEuhNStr.pgp
Description: PGP signature