X-Git-Url: http://git.draconx.ca/gitweb/gentoo-draconx.git/blobdiff_plain/4e5d71c0140412504cc651d2fa0c51794d45a7b0..bb4e6d58d20bf9587e1af27f747bb40fc852db94:/games-engines/onscripter-en/files/onscripter-en-20110930-fix-configure.patch diff --git a/games-engines/onscripter-en/files/onscripter-en-20110930-fix-configure.patch b/games-engines/onscripter-en/files/onscripter-en-20110930-fix-configure.patch new file mode 100644 index 0000000..5e4a16c --- /dev/null +++ b/games-engines/onscripter-en/files/onscripter-en-20110930-fix-configure.patch @@ -0,0 +1,55 @@ +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 +