c8c9adf9f5
Interesting fixes: 76584a0 Reorganize code to use only 32bit atomic ops for 32bit platforms 30d2ae5 Implement __cxa_throw_bad_array_new_length
28 lines
532 B
CMake
28 lines
532 B
CMake
|
|
set(CXXRT_SOURCES
|
|
dynamic_cast.cc
|
|
exception.cc
|
|
guard.cc
|
|
stdexcept.cc
|
|
typeinfo.cc
|
|
memory.cc
|
|
auxhelper.cc
|
|
libelftc_dem_gnu3.c
|
|
)
|
|
|
|
|
|
add_library(cxxrt-static STATIC ${CXXRT_SOURCES})
|
|
add_library(cxxrt-shared SHARED ${CXXRT_SOURCES})
|
|
|
|
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
|
|
target_link_libraries(cxxrt-shared dl)
|
|
target_link_libraries(cxxrt-static dl)
|
|
endif()
|
|
|
|
set_target_properties(cxxrt-static cxxrt-shared PROPERTIES
|
|
OUTPUT_NAME "cxxrt"
|
|
)
|
|
|
|
|
|
|