0032475: Configuration, qmake - drop "-z defs" linker flag on macOS
[occt.git] / adm / qmake / OccCppConfig.pri
index 985d105..07f0fdd 100644 (file)
@@ -43,15 +43,15 @@ win32 {
   QMAKE_CXXFLAGS += -fexceptions
   QMAKE_CXXFLAGS += -fvisibility=default
   DEFINES += OCC_CONVERT_SIGNALS
   QMAKE_CXXFLAGS += -fexceptions
   QMAKE_CXXFLAGS += -fvisibility=default
   DEFINES += OCC_CONVERT_SIGNALS
-  gcc {
-    QMAKE_LFLAGS += -Wl,-z,defs
-  }
   mac {
     iphoneos {
       QMAKE_IOS_DEPLOYMENT_TARGET = 8.0
     } else {
       QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.14
     }
   mac {
     iphoneos {
       QMAKE_IOS_DEPLOYMENT_TARGET = 8.0
     } else {
       QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.14
     }
+  } else:gcc {
+    # ask linker to report missing library dependencies
+    QMAKE_LFLAGS += -Wl,-z,defs
   }
 }
 !CONFIG(debug, debug|release) {
   }
 }
 !CONFIG(debug, debug|release) {