LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File highlight-3.42-use_optflags.patch of Package highlight (Project devel:tools)

diff -up ./src/makefile.orig ./src/makefile
--- ./src/makefile.orig	2018-01-24 07:34:40.730387118 +0100
+++ ./src/makefile	2018-01-24 07:37:47.886394877 +0100
@@ -16,10 +16,11 @@
 CXX=g++
 
 # was: qmake-qt5
-QMAKE=qmake
+QMAKE=qmake-qt5
 
 # Added -std=c++11 because of auto_ptr to unique_ptr transition
-CFLAGS:=-Wall -O2 ${CFLAGS} -DNDEBUG -std=c++11
+OPTFLAGS=-O2
+CFLAGS:=-Wall -DNDEBUG -std=c++11 $(OPTFLAGS)
 #CFLAGS:=-ggdb ${CFLAGS} -std=c++11
 
 CFLAGS_DILU=-fno-strict-aliasing
@@ -114,7 +115,7 @@ gui-qt: highlight-gui
 
 highlight-gui: libhighlight.a ${GUI_OBJECTS}
 	cd gui-qt && \
-	${QMAKE} 'DEFINES+=DATA_DIR=\\\"${HL_DATA_DIR}\\\" CONFIG_DIR=\\\"${HL_CONFIG_DIR}\\\" DOC_DIR=\\\"${HL_DOC_DIR}\\\" ' && \
+	${QMAKE} QMAKE_CXXFLAGS="$(OPTFLAGS)" 'DEFINES+=DATA_DIR=\\\"${HL_DATA_DIR}\\\" CONFIG_DIR=\\\"${HL_CONFIG_DIR}\\\" DOC_DIR=\\\"${HL_DOC_DIR}\\\" ' && \
 	$(MAKE)
 
 $(OBJECTFILES) : makefile