Ver código fonte

Merge pull request #13905 from xwang2713/HPCC_24315-plugin-link

HPCC-24315 skip linker flag changes for individual plugin build

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 5 anos atrás
pai
commit
a68336a958
1 arquivos alterados com 6 adições e 4 exclusões
  1. 6 4
      cmake_modules/commonSetup.cmake

+ 6 - 4
cmake_modules/commonSetup.cmake

@@ -504,10 +504,12 @@ IF ("${COMMONSETUP_DONE}" STREQUAL "")
     endif()
   endif()
 
-  if (CMAKE_COMPILER_IS_GNUCXX)
-    #Ensure that missing symbols are reported as errors at link time (default for osx/windows)
-    SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,defs")
-    SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,defs")
+  if ( NOT PLUGIN )
+    if (CMAKE_COMPILER_IS_GNUCXX)
+      #Ensure that missing symbols are reported as errors at link time (default for osx/windows)
+      SET (CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,defs")
+      SET (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z,defs")
+      endif()
   endif()
 
   macro(HPCC_ADD_EXECUTABLE target)