[libunwind] [libunwind] Pass -Wl,--export-dynamic on all supported platforms (PR #67205)
    Fangrui Song via cfe-commits 
    cfe-commits at lists.llvm.org
       
    Fri Sep 22 23:32:11 PDT 2023
    
    
  
================
@@ -10,8 +10,10 @@ link_flags = []
 if @LIBUNWIND_ENABLE_CET@:
     compile_flags.append('-fcf-protection=full')
 
-if '@CMAKE_SYSTEM_NAME@' == 'Linux':
-    link_flags.append('-Wl,--export-dynamic')
+# Add -Wl,--export-dynamic if supported by the linker (this CMake variable will
+# be empty for Apple platforms).
----------------
MaskRay wrote:
for non-ELF platforms.
AIX linker doesn't have this option.
https://github.com/llvm/llvm-project/pull/67205
    
    
More information about the cfe-commits
mailing list