[PATCH] D24119: [libc++] add linker option "-Wl, -z, defs" in standalone build

Asiri Rathnayake via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 27 07:05:18 PDT 2016


rmaprath added a subscriber: rmaprath.

================
Comment at: libcxx/trunk/CMakeLists.txt:329
@@ +328,3 @@
+          ${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD") AND
+     NOT LLVM_USE_SANITIZER)
+    set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,defs")
----------------
Perhaps we should exclude `LIBCXX_HAS_EXTERNAL_THREAD_API` as well? Because there we explicitly strip off these flags.


Repository:
  rL LLVM

https://reviews.llvm.org/D24119





More information about the cfe-commits mailing list