Ticket #63707: 0017-10.6-and-less-libcxxabi-work-around-no-reexported_symbo.patch

File 0017-10.6-and-less-libcxxabi-work-around-no-reexported_symbo.patch, 1.4 KB (added by kencu (Ken), 2 years ago)
  • (a) a/libcxxabi/src/CMakeLists.txt.orig vs. (b) b/libcxxabi/src/CMakeLists.txt

    don't try to control libcxxabi exports on 10.6.8
    we are just exporting the entire libcxxabi library
    we could make this apply always using the same mechanism as the other
    0017-series patch
    
    a b  
    201201
    202202  add_library(cxxabi-reexports INTERFACE)
    203203
    204   # -exported_symbols_list is only available on Apple platforms
    205   if (APPLE)
    206     function(export_symbols file)
    207       target_link_libraries(cxxabi_shared PRIVATE "-Wl,-exported_symbols_list,${file}")
    208     endfunction()
    209     function(reexport_symbols file)
    210       export_symbols("${file}")
    211       target_link_libraries(cxxabi-reexports INTERFACE "-Wl,-reexported_symbols_list,${file}")
    212     endfunction()
    213 
    214     export_symbols("${CMAKE_CURRENT_SOURCE_DIR}/../lib/itanium-base.exp")
    215 
    216     if (LIBCXXABI_ENABLE_NEW_DELETE_DEFINITIONS)
    217       reexport_symbols("${CMAKE_CURRENT_SOURCE_DIR}/../lib/new-delete.exp")
    218     endif()
    219 
    220     if (LIBCXXABI_ENABLE_EXCEPTIONS)
    221       reexport_symbols("${CMAKE_CURRENT_SOURCE_DIR}/../lib/exceptions.exp")
    222 
    223       if ("${CMAKE_OSX_ARCHITECTURES}" MATCHES "^(armv6|armv7|armv7s)$")
    224         reexport_symbols("${CMAKE_CURRENT_SOURCE_DIR}/../lib/personality-sjlj.exp")
    225       else()
    226         reexport_symbols("${CMAKE_CURRENT_SOURCE_DIR}/../lib/personality-v0.exp")
    227       endif()
    228     endif()
    229   endif()
    230204endif()
    231205
    232206# Build the static library.