Hello all, Anyone know of a way to configure fltk-config.in so that "--cxxflags", "--ldflags" and "--ldstaticflags" doe not include any optimisation or debug flags? For example, I get the following:
$ fltk-config --cxxflags -I/usr/include/freetype2 -O2 -g -m32 -march=i686 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT When I use the fltk.m4 file from the article I wrote: "Adding FLTK version checking to Automake scripts" found here http://www.fltk.org/articles.php?L692 I cannot "sanely" debug my apps because the -O2 flag appear after my debug settings "-O0 -g3". Having checked the behaviour of sdl-config, I would prefer to see: $ fltk-config --cxxflags -I/usr/include/freetype2 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT When I examine the fltk-config.in file, it appears that CXXFLAGS is defined as @[EMAIL PROTECTED] AFAIK, @CXXFLAGS@ is expanded by automake (??) I was going to try to write a patch that strips the -02 to -mtune=i686 (inclusive) and submit it, but I do not know where @CXXFLAGS@ is defined. Currently my patch is to simply replace [EMAIL PROTECTED]@ with hardcoded CXXFLAGS=-I/usr/include/freetype2 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT This isn't ideal as it is specific to systems that are similar (hardware and setup) to mine. So, does anyone know of a cleaner, more universal, solution for removing the optimisation and debug flags from "--cxxflags", "--ldflags" and "--ldstaticflags"? Thanks, -- Alvin _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

