diff --git a/src/app/app.pro b/src/app/app.pro index 7e6b65a9e..cd2f3978d 100644 --- a/src/app/app.pro +++ b/src/app/app.pro @@ -146,7 +146,7 @@ CONFIG(debug, debug|release){ # Release DEFINES += QT_NO_DEBUG_OUTPUT - QMAKE_CXXFLAGS_RELEASE += -g + unix:QMAKE_CXXFLAGS_RELEASE += -g #local revision number for using in version HG_REV=$$system(hg parents --template '{rev}') diff --git a/src/libs/qmuparser/qmuparser.pro b/src/libs/qmuparser/qmuparser.pro index e392e091e..6f0ccd7a1 100644 --- a/src/libs/qmuparser/qmuparser.pro +++ b/src/libs/qmuparser/qmuparser.pro @@ -107,8 +107,7 @@ CONFIG(debug, debug|release){ # Release DEFINES += QT_NO_DEBUG_OUTPUT - QMAKE_CXXFLAGS_RELEASE += -g - + unix:QMAKE_CXXFLAGS_RELEASE += -g unix:QMAKE_POST_LINK += objcopy --only-keep-debug $(DESTDIR)/$(TARGET) $(DESTDIR)/$(TARGET).debug && unix:QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(DESTDIR)/$(TARGET) && unix:QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(DESTDIR)/$(TARGET).debug $(DESTDIR)/$(TARGET) diff --git a/src/libs/vpropertyexplorer/vpropertyexplorer.pro b/src/libs/vpropertyexplorer/vpropertyexplorer.pro index 79d3e2364..2e88e76b0 100644 --- a/src/libs/vpropertyexplorer/vpropertyexplorer.pro +++ b/src/libs/vpropertyexplorer/vpropertyexplorer.pro @@ -150,8 +150,7 @@ CONFIG(debug, debug|release){ # Release DEFINES += QT_NO_DEBUG_OUTPUT - QMAKE_CXXFLAGS_RELEASE += -g - + unix:QMAKE_CXXFLAGS_RELEASE += -g unix:QMAKE_POST_LINK += objcopy --only-keep-debug $(DESTDIR)/$(TARGET) $(DESTDIR)/$(TARGET).debug && unix:QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(DESTDIR)/$(TARGET) && unix:QMAKE_POST_LINK += objcopy --add-gnu-debuglink $(DESTDIR)/$(TARGET).debug $(DESTDIR)/$(TARGET)