Skip to content

Commit

Permalink
remove --copy-dt-needed-entries when linking exes (#325)
Browse files Browse the repository at this point in the history
Summary:
This linker flag does not seem to be needed, and prevents use of
gold or lld at link time.

Test Plan:
* build using llvm thinLTO
  • Loading branch information
nbronson authored May 7, 2024
1 parent 7b4cd3c commit a963bbf
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,6 @@ if(USE_FOLLY)
add_compile_definitions(USE_FOLLY FOLLY_NO_CONFIG HAVE_CXX11_ATOMIC)
list(APPEND THIRDPARTY_LIBS Folly::folly)
set(FOLLY_LIBS Folly::folly)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--copy-dt-needed-entries")
endif()
find_package(Threads REQUIRED)

Expand Down

0 comments on commit a963bbf

Please sign in to comment.