]> git.draconx.ca Git - gentoo-draconx.git/blob - games-engines/onscripter-en/files/onscripter-en-20110930-fix-configure.patch
Add onscripter-en ebuild.
[gentoo-draconx.git] / games-engines / onscripter-en / files / onscripter-en-20110930-fix-configure.patch
1 From f48d0f8375a54e51a6e2ec8df41588e1243ce9b6 Mon Sep 17 00:00:00 2001
2 From: Mion <UncleMion@gmail.com>
3 Date: Thu, 16 Feb 2012 19:47:15 -0700
4 Subject: [PATCH] fix to configure, removing default -Werror (based on a patch
5  submitted by hex)
6
7 ---
8  configure | 10 +++++++---
9  1 file changed, 7 insertions(+), 3 deletions(-)
10
11 diff --git a/configure b/configure
12 index c58bf4332322..95779ab326a2 100755
13 --- a/configure
14 +++ b/configure
15 @@ -31,7 +31,7 @@ USE_CPU_GFX=true
16  VECTORIZE=false
17  VECTORIZE_LEVEL=0
18  FASTMATH=-ffast-math
19 -WERROR="-Werror"
20 +WERROR=
21  CXXSTD="-std=c++98"
22  STRICT=
23  INTERNAL_LIBS=false
24 @@ -100,6 +100,9 @@ do
25        --no-werror | -no-werror)
26          WERROR=""
27          ;;
28 +      --with-werror | -with-werror)
29 +        WERROR="-Werror"
30 +        ;;
31        --unsupported-compiler | -unsupported-compiler)
32          UNSUPPORTED_COMPILER=true ;;
33        --unsupported-compiler=* | -unsupported-compiler=*)
34 @@ -237,7 +240,8 @@ do
35                                    (note: g++ already uses -Wall)
36           --pedantic               compile with -pedantic
37           --unsupported-compiler   don't check for known compilers
38 -         --no-werror              don't compile with -Werror
39 +         --no-werror              don't compile with -Werror (default)
40 +         --with-werror            compile with -Werror
41           --no-cpu-gfx             don't compile with custom intrinsic graphics
42                                    routines (usually compiled for x86/PPC if GCC 4.3+)
43           --vectorize              try to use compiler vectorization (requires GCC 4+)
44 @@ -950,7 +954,7 @@ genlink() {
45      then
46          eval "LINK$2=\"\\\$(EXTLIB)/lib/lib$2\\\$(LIBSUFFIX)\""
47      else
48 -        eval "LINK$2=-l$2.dll"
49 +        eval "LINK$2=-l$2"
50      fi
51  }
52  genlink $INTERNAL_LIBPNG    z
53 -- 
54 2.2.2
55