Skip to content

Commit 2eada2f

Browse files
committed
fix: add option to disable ABI0
1 parent 6194bb6 commit 2eada2f

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ set(PROJECT_LICENSE "MIT")
2626
string(TIMESTAMP PROJECT_BUILD_DATE "%Y-%m-%d")
2727
string(TIMESTAMP PROJECT_BUILD_TIME "%H:%M:%S")
2828

29+
option(DYNLIBUTILS_USE_ABI0 "Enable use of the older C++ ABI, which was the default in GCC versions before GCC 5" ON)
30+
2931
set(EXTERNAL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/external")
3032
set(INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include")
3133
set(SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/src")

cmake/platform/linux.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ endif()
2323
set(PLATFORM_COMPILE_DEFINITIONS
2424
${PLATFORM_COMPILE_DEFINITIONS}
2525

26-
_GLIBCXX_USE_CXX11_ABI=0
26+
_GLIBCXX_USE_CXX11_ABI=$<IF:$<BOOL:${DYNLIBUTILS_USE_ABI0}>,0,1>
2727
)

0 commit comments

Comments
 (0)