]> granicus.if.org Git - yasm/commitdiff
Quiet warnings in Pyrex code by adding "-w" if GCC detected.
authorPeter Johnson <peter@tortall.net>
Wed, 5 Apr 2006 02:26:19 +0000 (02:26 -0000)
committerPeter Johnson <peter@tortall.net>
Wed, 5 Apr 2006 02:26:19 +0000 (02:26 -0000)
* configure.ac: Pass GCC value to Makefile
* Makefile.inc: Pass GCC value to python-setup.txt
* setup.py: Check GCC value and append -w if necessary.

svn path=/trunk/yasm/; revision=1460

configure.ac
tools/python-yasm/Makefile.inc
tools/python-yasm/setup.py

index f60118108c200f494bfc48acf609d1dfb5e0e838..387384fd8e4e36aebe3abef448ad636a83c7f038 100644 (file)
@@ -156,6 +156,7 @@ fi
 # Force x86 architecture only for now.
 ARCH=x86
 AC_SUBST([ARCH])
+AC_SUBST([GCC])
 
 # Require things for --enable-maintainer-mode option.
 if test "$USE_MAINTAINER_MODE" = "yes"; then
index 128a68e08e0dbb284208d102e17e720517bfc407..2d7c877babc0e09bcb705a8033f7871ab536d6d0 100644 (file)
@@ -24,6 +24,7 @@ python-setup.txt: Makefile
        echo "includes=${DEFAULT_INCLUDES} ${INCLUDES} ${DEFS}" > python-setup.txt
        echo "sources=${libyasm_a_SOURCES}" >> python-setup.txt
        echo "srcdir=${srcdir}" >> python-setup.txt
+       echo "gcc=${GCC}" >> python-setup.txt
 
 CLEANFILES += python-setup.txt
 
index 9655aa4d6b59eeac84a30c2a24df61fc88f5e695..87f7304cb2a220f5894f82970c68c0da10a57e66 100644 (file)
@@ -112,5 +112,7 @@ if __name__ == "__main__":
     incldir, cppflags = ParseCPPFlags(opts["includes"])
     sources = ParseSources(opts["sources"], opts["srcdir"])
     sources.append('yasm_python.c')
+    if opts["gcc"] == "yes":
+        cppflags.append('-w')
     RunSetup(incldir, cppflags, sources)