From be19d2c3d60a4647143694debfc7ba295fa1ab3c Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 28 Oct 2014 18:12:47 +0000 Subject: 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 --- configure.in | 19 ++++++++++--------- 1 file 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) -- cgit v1.2.3