LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File qpxtool-0.7.2-optflags.patch of Package qpxtool (Project home:Lazy_Kent)

Index: qpxtool-0.7.2/configure
===================================================================
--- qpxtool-0.7.2.orig/configure
+++ qpxtool-0.7.2/configure
@@ -344,8 +344,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 "$__enable_debug" = "yes" ; then
 		echo "# additional debug options" >> Makefile
@@ -486,8 +486,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
@@ -613,9 +613,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)
@@ -647,9 +647,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)
@@ -714,9 +714,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.7.2/gui/qpxtool.pro
===================================================================
--- qpxtool-0.7.2.orig/gui/qpxtool.pro
+++ qpxtool-0.7.2/gui/qpxtool.pro
@@ -8,6 +8,10 @@ QT+=network sql
 CONFIG+=thread
 INCLUDEPATH+=../lib/include
 
+QMAKE_CFLAGS += $(OPTFLAGS)
+QMAKE_CXXFLAGS += $(OPTFLAGS)
+QMAKE_STRIP = "yes"
+
 TEMPLATE = app
 TARGET = qpxtool
 DEPENDPATH += . include locale src