Alvin wrote:
> 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
I'm not sure if fltk-config has a way to remove flags,
but gmake has the ability to do string replacement, eg:
CXXFLAGS=$(shell fltk-config --cxxflags)
CXXFLAGS_NOOPT=$(subst -O2,,$(CXXFLAGS))
So if CXXFLAGS is "-foo -O2 -bar", CXXFLAGS_NODEBUG will be "-foo -bar".
For details on gmake $(subst a,b,c), see:
http://www.gnu.org/software/make/manual/make.html#Text-Functions
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk