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_r291585197
##########
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 assume we used bfd so far. Switching linkers could potentially cause
unexpected behaviours and serious errors. Should we make gold the default? Are
we sure this works properly on all supported platforms?
----------------------------------------------------------------
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