File xalan-c-1.11-optflags.patch of Package xalan-c
Index: c/runConfigure
===================================================================
--- c/runConfigure.orig
+++ c/runConfigure
@@ -367,7 +367,7 @@ if test $debug = "off"; then
elif test $platform = "os390"; then
debugflag="-DNDEBUG";
elif test $platform = "linux"; then
- debugflag="-O3 -DNDEBUG";
+ debugflag="$RPM_OPT_FLAGS -DNDEBUG";
elif test $cppcompiler = "aCC"; then
if test $platform = "hp-11-ia64"; then
debugflag="+O3 -DNDEBUG";
@@ -375,7 +375,7 @@ if test $debug = "off"; then
debugflag="+O2 -DNDEBUG";
fi
else
- debugflag="-O -DNDEBUG";
+ debugflag="$RPM_OPT_FLAGS -DNDEBUG";
fi
else
echo "Debug is ON"