diff options
author | danfe <danfe@FreeBSD.org> | 2010-10-05 21:21:36 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2010-10-05 21:21:36 +0800 |
commit | 81601dbf3b0b0cc481656c98a4392c27973247d8 (patch) | |
tree | 786911ac5b41bf814983798143015c9ee26656cb | |
parent | 62ea94bde456323f8c8da5da9876eb33324fb0f7 (diff) | |
download | freebsd-ports-gnome-81601dbf3b0b0cc481656c98a4392c27973247d8.tar.gz freebsd-ports-gnome-81601dbf3b0b0cc481656c98a4392c27973247d8.tar.zst freebsd-ports-gnome-81601dbf3b0b0cc481656c98a4392c27973247d8.zip |
Fix the build on ia32 with default (CPU-agnostic) CFLAGS.
Reported by: pointyhat via erwin
-rw-r--r-- | editors/biew/files/patch-configure | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/editors/biew/files/patch-configure b/editors/biew/files/patch-configure index acccad560c63..ac68b5d46645 100644 --- a/editors/biew/files/patch-configure +++ b/editors/biew/files/patch-configure @@ -1,6 +1,18 @@ --- configure.orig +++ configure -@@ -544,10 +544,10 @@ +@@ -583,10 +583,10 @@ + _osldef="$_debug $_profile $_osldef" + elif test -z "$CFLAGS" ; then + _cdefos="-DNDEBUG=1 -O2 -ffast-math -fomit-frame-pointer $_cdefos" +- x86 && _cdefos="-mmmx -msse $_cdefos" + else + _cdefos="-DNDEBUG=1 $CFLAGS $_cdefos" + fi ++x86 && _cdefos="-mmmx -msse $_cdefos" + test -n "$LDFLAGS" && _osldef="$LDFLAGS $_osldef" + test -n "$LIBS" && _osldef="$LIBS $_osldef" + +@@ -656,10 +656,10 @@ echocheck "slang.h" check_header slang.h enabled slang_h && _cdefos="-D_SLANG_ -D__OS_NAME__='\"Unix/Slang\"' $_cdefos" @@ -13,7 +25,7 @@ echocheck "curses.h" cat > $TMPC << EOF #include <curses.h> -@@ -566,8 +566,10 @@ +@@ -678,8 +678,10 @@ fi echores "$_curses" fi |