[Xquartz-changes] [542] trunk/compile-xserver.sh
source_changes at macosforge.org
source_changes at macosforge.org
Thu Apr 28 01:42:13 PDT 2011
Revision: 542
http://trac.macosforge.org/projects/xquartz/changeset/542
Author: jeremyhu at freedesktop.org
Date: 2011-04-28 01:42:13 -0700 (Thu, 28 Apr 2011)
Log Message:
-----------
Enable more warnings and use clang
Modified Paths:
--------------
trunk/compile-xserver.sh
Modified: trunk/compile-xserver.sh
===================================================================
--- trunk/compile-xserver.sh 2011-04-28 08:38:42 UTC (rev 541)
+++ trunk/compile-xserver.sh 2011-04-28 08:42:13 UTC (rev 542)
@@ -11,8 +11,6 @@
MAKE="gnumake"
MAKE_OPTS="-j3"
-#SCAN_BUILD="scan-build -v -V -o clang.d"
-
. ~/src/strip.sh
#PREFIX=/usr/X11
@@ -24,12 +22,24 @@
ACLOCAL="aclocal -I ${PREFIX}/share/aclocal -I /usr/local/share/aclocal"
-CFLAGS="-Wall -pipe -DNO_ALLOCA"
-CFLAGS="$CFLAGS -O0 -ggdb3"
+CPPFLAGS="-DNO_ALLOCA"
+
+CFLAGS="$CFLAGS -O0 -ggdb3 -pipe"
CFLAGS="$CFLAGS $ARCHFLAGS"
+CFLAGS="$CFLAGS -Wall -Wextra -Wno-sign-compare -Wno-unused-parameter -Wno-missing-field-initializers"
+OBJCFLAGS="$CFLAGS"
LDFLAGS="$CFLAGS"
+#CC="llvm-gcc"
+#CXX="llvm-g++"
+CC="clang"
+CXX="clang++"
+
+OBJC="$CC"
+
+#SCAN_BUILD="scan-build -v -V -o clang.d --use-cc=${CC} --use-c++=${CXX}"
+
#CPPFLAGS="$CPPFLAGS -F/Applications/Utilities/XQuartz.app/Contents/Frameworks"
#LDFLAGS="$LDFLAGS -F/Applications/Utilities/XQuartz.app/Contents/Frameworks"
#CPPFLAGS="$CPPFLAGS -F/Applications/Utilities/X11.app/Contents/Frameworks"
@@ -48,7 +58,7 @@
export PS2PDF=/opt/local/bin/ps2pdf
fi
-export ACLOCAL CPPFLAGS CFLAGS LDFLAGS
+export ACLOCAL CPPFLAGS CFLAGS OBJCFLAGS LDFLAGS CC OBJC
PKG_CONFIG_PATH=${PREFIX}/share/pkgconfig:${PREFIX}/lib/pkgconfig:$PKG_CONFIG_PATH
PATH=${PREFIX}/bin:$PATH
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/xquartz-changes/attachments/20110428/1fc6fd8a/attachment-0001.html>
More information about the Xquartz-changes
mailing list