File xalan-c-1.10.0-optflags.patch of Package xalan-c
--- c/runConfigure
+++ c/runConfigure
@@ -363,7 +363,7 @@
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";
@@ -371,7 +371,7 @@
debugflag="+O2 -DNDEBUG";
fi
else
- debugflag="-O -DNDEBUG";
+ debugflag="$RPM_OPT_FLAGS -DNDEBUG";
fi
else
echo "Debug is ON"