Strip on Mac.

--HG--
branch : develop
This commit is contained in:
dismine 2014-10-05 22:43:31 +03:00
parent 8561b3bc32
commit 1f2439ef65
3 changed files with 5 additions and 5 deletions

View File

@ -256,7 +256,7 @@ CONFIG(release, debug|release){
unix:macx{
# On Mac
QMAKE_POST_LINK += gobjcopy --only-keep-debug $(TARGET) $(TARGET).debug &&
QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(TARGET) &&
QMAKE_POST_LINK += strip $(TARGET) &&
QMAKE_POST_LINK += gobjcopy --add-gnu-debuglink $(TARGET).debug $(TARGET)
} else {
# On Linux

View File

@ -113,9 +113,9 @@ CONFIG(debug, debug|release){
unix:QMAKE_CXXFLAGS_RELEASE += -g
unix:macx{
# On Mac
QMAKE_POST_LINK += gobjcopy --only-keep-debug $(DESTDIR)/$(TARGET) $(DESTDIR)/$(TARGET).debug &&
QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(DESTDIR)/$(TARGET) &&
QMAKE_POST_LINK += gobjcopy --add-gnu-debuglink $(DESTDIR)/$(TARGET).debug $(DESTDIR)/$(TARGET)
QMAKE_POST_LINK += gobjcopy --only-keep-debug $(DESTDIR)$(TARGET) $(DESTDIR)$(TARGET).debug &&
QMAKE_POST_LINK += strip $(DESTDIR)$(TARGET) &&
QMAKE_POST_LINK += gobjcopy --add-gnu-debuglink $(DESTDIR)$(TARGET).debug $(DESTDIR)$(TARGET)
} else {
# On Linux
unix:QMAKE_POST_LINK += objcopy --only-keep-debug $(DESTDIR)/$(TARGET) $(DESTDIR)/$(TARGET).debug &&

View File

@ -157,7 +157,7 @@ CONFIG(debug, debug|release){
unix:macx{
# On Mac
QMAKE_POST_LINK += gobjcopy --only-keep-debug $(DESTDIR)$(TARGET) $(DESTDIR)$(TARGET).debug &&
QMAKE_POST_LINK += strip --strip-debug --strip-unneeded $(DESTDIR)$(TARGET) &&
QMAKE_POST_LINK += strip $(DESTDIR)$(TARGET) &&
QMAKE_POST_LINK += gobjcopy --add-gnu-debuglink $(DESTDIR)$(TARGET).debug $(DESTDIR)$(TARGET)
} else {
# On Linux