From f48d0f8375a54e51a6e2ec8df41588e1243ce9b6 Mon Sep 17 00:00:00 2001 From: Mion Date: Thu, 16 Feb 2012 19:47:15 -0700 Subject: [PATCH] fix to configure, removing default -Werror (based on a patch submitted by hex) --- configure | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/configure b/configure index c58bf4332322..95779ab326a2 100755 --- a/configure +++ b/configure @@ -31,7 +31,7 @@ USE_CPU_GFX=true VECTORIZE=false VECTORIZE_LEVEL=0 FASTMATH=-ffast-math -WERROR="-Werror" +WERROR= CXXSTD="-std=c++98" STRICT= INTERNAL_LIBS=false @@ -100,6 +100,9 @@ do --no-werror | -no-werror) WERROR="" ;; + --with-werror | -with-werror) + WERROR="-Werror" + ;; --unsupported-compiler | -unsupported-compiler) UNSUPPORTED_COMPILER=true ;; --unsupported-compiler=* | -unsupported-compiler=*) @@ -237,7 +240,8 @@ do (note: g++ already uses -Wall) --pedantic compile with -pedantic --unsupported-compiler don't check for known compilers - --no-werror don't compile with -Werror + --no-werror don't compile with -Werror (default) + --with-werror compile with -Werror --no-cpu-gfx don't compile with custom intrinsic graphics routines (usually compiled for x86/PPC if GCC 4.3+) --vectorize try to use compiler vectorization (requires GCC 4+) @@ -950,7 +954,7 @@ genlink() { then eval "LINK$2=\"\\\$(EXTLIB)/lib/lib$2\\\$(LIBSUFFIX)\"" else - eval "LINK$2=-l$2.dll" + eval "LINK$2=-l$2" fi } genlink $INTERNAL_LIBPNG z -- 2.2.2