summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2014-10-28 18:12:47 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2014-10-28 18:12:47 +0000
commitbe19d2c3d60a4647143694debfc7ba295fa1ab3c (patch)
tree9d01b77661d2686902050ebda1b593894b74354e
parent6be263865cbe4c447f39c06c9eb26646bd685b77 (diff)
Fix a regression introduced in svn r10344 in autoconf/configure builds.
Shared library sizes were about 4x the usual size, because makeinclude and fltk-config always used "-g -O2", i.e. debugging compiler options. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10403 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
-rw-r--r--configure.in19
1 files changed, 10 insertions, 9 deletions
diff --git a/configure.in b/configure.in
index 1fb4bf502..b71e719de 100644
--- a/configure.in
+++ b/configure.in
@@ -26,6 +26,16 @@ AC_INIT(src/Fl.cxx)
AC_CANONICAL_HOST
+dnl Do not automatically add "-g" to compiler options...
+dnl This must be _before_ "Find compiler commands..."
+ARCHFLAGS="${ARCHFLAGS:=}"
+CFLAGS="${CFLAGS:=}"
+CPPFLAGS="${CPPFLAGS:=}"
+CXXFLAGS="${CXXFLAGS:=}"
+DSOFLAGS="${DSOFLAGS:=}"
+LDFLAGS="${LDFLAGS:=}"
+OPTIM="${OPTIM:=}"
+
dnl Find compiler commands...
AC_PROG_CC
AC_PROG_CXX
@@ -55,15 +65,6 @@ AC_SUBST(FL_MINOR_VERSION)
AC_SUBST(FL_PATCH_VERSION)
AC_SUBST(FL_API_VERSION)
-dnl Do not automatically add "-g" to compiler options...
-ARCHFLAGS="${ARCHFLAGS:=}"
-CFLAGS="${CFLAGS:=}"
-CPPFLAGS="${CPPFLAGS:=}"
-CXXFLAGS="${CXXFLAGS:=}"
-DSOFLAGS="${DSOFLAGS:=}"
-LDFLAGS="${LDFLAGS:=}"
-OPTIM="${OPTIM:=}"
-
AC_SUBST(ARCHFLAGS)
AC_SUBST(OPTIM)