From 62d66c642231b3253295179e9ee8f934e445d334 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Mon, 14 May 2007 12:21:42 +0000 Subject: [PATCH] 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 --- CHANGES | 2 ++ configure.in | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) 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,