i noticed a bunch of packages on here like to force their own build settings in configure:
CFLAGS=" $STLPORT_CFLAGS $CXXFLAGS -O3 -DNDEBUG " dnl-O0 -g
CXXFLAGS=" $STLPORT_CFLAGS $CXXFLAGS -O3 -DNDEBUG " dnl-O0 -g
LDFLAGS=" $STLPORT_LDFLAGS $LDFLAGS -Wl,-O1 -Wl,--hash-style=both"
multiple issues here:
- CFLAGS is for C compilers, not C++, so forcing CXXFLAGS is incorrect
- you should prepend, not append, your own custom flags otherwise they ignore the users' own settings
- those linker flags are specific to the GNU linker and thus arent portable
- packages really shouldnt force any settings themselves in the first place
if you really want to keep these settings, please add a configure flag that lets distros disable them like --disable-optimizations. this would still allow you to retain the default.
I'll probably move this tampering to an --enable-gcc-optimizations switch and leave it out in a regular ./configure.
It might take a little while before I get to this though.