summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2007-05-14 12:21:42 +0000
committerMatthias Melcher <fltk@matthiasm.com>2007-05-14 12:21:42 +0000
commit62d66c642231b3253295179e9ee8f934e445d334 (patch)
treea393f425f0f5ed792e6a19e2cbea4c05c80686b5
parent2df9fcb3aabd15b2537565fb20b6470f7fe33331 (diff)
Str #1656: changed default optimization on Cygwin/Mingw to -O3 because -O3 causes verifably and repeatably bad code.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5823 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--CHANGES2
-rw-r--r--configure.in5
2 files changed, 6 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index da18aa463..1fd0a204d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -3,6 +3,8 @@ CHANGES IN FLTK 1.1.8
- Documentation fixes (STR #1454, STR #1455, STR #1456,
STR #1457, STR #1458, STR #1460, STR #1481, STR #1578,
STR #1639, STR #1645, STR #1644)
+ - Made -O3 the default optimization on Cygwin/Mingw since
+ -Os currently creates bad code (STR #1656)
- OSF/Tru64 now uses 'install-sh' instead of 'install' to
accomodate for a missing '-d' option (STR #1632)
- New option in Fluid project settings to translate all
diff --git a/configure.in b/configure.in
index f494e1593..71388a34d 100644
--- a/configure.in
+++ b/configure.in
@@ -615,7 +615,10 @@ case $uname in
LDFLAGS="-mwindows $LDFLAGS"
DSOFLAGS="-mwindows $DSOFLAGS"
LIBS="$LIBS -lole32 -luuid -lcomctl32 -lwsock32"
- OPTIM="$OPTIM"
+ if test "x$with_optim" = x; then
+ dnl Avoid -Os optimization on Cygwin/Mingw
+ with_optim="-O3"
+ fi
if test x$enable_gl != xno; then
AC_CHECK_HEADER(GL/gl.h,