Add '-x' to strip when stripping dynamic libraries on OS X.

--HG--
branch : develop
This commit is contained in:
dismine 2014-10-05 23:11:00 +03:00
parent 1f2439ef65
commit ee26922f94
2 changed files with 2 additions and 2 deletions

View File

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

View File

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