File qpxtool-0.7.2-optflags.patch of Package qpxtool
Index: qpxtool-0.8.1/configure
===================================================================
--- qpxtool-0.8.1.orig/configure
+++ qpxtool-0.8.1/configure
@@ -353,8 +353,8 @@ LPNG_LIB = $lpng_ldflags
" >> Makefile
- echo "CXXFLAGS += -Wall -O2 $OSDEFS $LPNG_DEFS $PLUGIN_DEFS $DEFS" >> Makefile
- echo "CFLAGS += -Wall -O2 $OSDEFS $LPNG_DEFS $PLUGIN_DEFS $DEFS" >> Makefile
+ echo "CXXFLAGS += $OPTFLAGS $OSDEFS $LPNG_DEFS $PLUGIN_DEFS $DEFS" >> Makefile
+ echo "CFLAGS += $OPTFLAGS $OSDEFS $LPNG_DEFS $PLUGIN_DEFS $DEFS" >> Makefile
if test "$__cross_compilation" = "yes" ; then
echo "# additional cross-compilatio options" >> Makefile
@@ -508,8 +508,8 @@ else
if test "$OSL" = "darwin" ; then
# echo " strip qpxtool.app/Contents/MacOS/qpxtool" >> $mf
echo " " >> $mf
- else
- echo " strip --strip-unneeded qpxtool" >> $mf
+# else
+# echo " strip --strip-unneeded qpxtool" >> $mf
fi
fi
fi
@@ -636,9 +636,9 @@ clean:
rm -f \$(LIB)* \$(OBJS) ../lib/\$(LIB) *~ include/*~
install: " >> $mf
- if test "$__enable_debug" = "no" ; then
- echo " strip --strip-unneeded \$(LIB)" >> $mf
- fi
+# if test "$__enable_debug" = "no" ; then
+# echo " strip --strip-unneeded \$(LIB)" >> $mf
+# fi
echo "
mkdir -p \$(DESTDIR)\$(LIBDIR)
install -m 755 \$(LIB) \$(DESTDIR)\$(LIBDIR)
@@ -670,9 +670,9 @@ clean:
rm -f \$(LIB_SHORT)* \$(OBJS) ../lib/\$(LIB_SHORT) *~ include/*~
install: " >> $mf
- if test "$__enable_debug" = "no" ; then
- echo " strip --strip-unneeded \$(LIB)" >> $mf
- fi
+# if test "$__enable_debug" = "no" ; then
+# echo " strip --strip-unneeded \$(LIB)" >> $mf
+# fi
echo "
mkdir -p \$(DESTDIR)\$(LIBDIR)
install -m 755 \$(LIB) \$(DESTDIR)\$(LIBDIR)
@@ -738,9 +738,9 @@ clean:
rm -f \$(LIB_SHORT) \$(OBJS) ../lib/\$(LIB_SHORT) *~ include/*~
install: " > $mf
- if test "$__enable_debug" = "no" ; then
- echo " strip --strip-unneeded \$(LIB_SHORT)" >> $mf
- fi
+# if test "$__enable_debug" = "no" ; then
+# echo " strip --strip-unneeded \$(LIB_SHORT)" >> $mf
+# fi
echo "
mkdir -p \$(DESTDIR)\$(PLUGINDIR)
install -m 755 \$(LIB_SHORT) \$(DESTDIR)\$(PLUGINDIR)
Index: qpxtool-0.8.1/gui/qpxtool.pro
===================================================================
--- qpxtool-0.8.1.orig/gui/qpxtool.pro
+++ qpxtool-0.8.1/gui/qpxtool.pro
@@ -8,6 +8,10 @@ QT+=widgets network sql printsupport
CONFIG+=thread
INCLUDEPATH+=../lib/include
+QMAKE_CFLAGS += $(OPTFLAGS)
+QMAKE_CXXFLAGS += $(OPTFLAGS)
+QMAKE_STRIP = "yes"
+
TEMPLATE = app
TARGET = qpxtool
DEPENDPATH += . include locale src