bakaid commented on a change in pull request #576: MINIFICPP-902: Attempt 
improved caching with travis
URL: https://github.com/apache/nifi-minifi-cpp/pull/576#discussion_r291598211
 
 

 ##########
 File path: CMakeLists.txt
 ##########
 @@ -110,6 +110,14 @@ if(CCACHE_FOUND)
     message("-- Found ccache: ${CCACHE_FOUND}")
 endif(CCACHE_FOUND)
 
+if (UNIX AND NOT APPLE)
+  execute_process(COMMAND ${CMAKE_C_COMPILER} -fuse-ld=gold -Wl,--version 
ERROR_QUIET OUTPUT_VARIABLE ld_version)
+  if ("${ld_version}" MATCHES "GNU gold")
+    set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold 
-Wl,--disable-new-dtags")
 
 Review comment:
   I am completely for keeping it with a conditional.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to