diff options
author | Etienne Guesnet <etienne.guesnet.external@atos.net> | 2020-09-11 17:00:38 +0200 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2020-12-16 08:07:04 +1100 |
commit | 4fade4da6c05bd4e8c3b54892fb81592a1afa60d (patch) | |
tree | 78b9ff53c944ae10e76e7c72af6557cf10746c00 /storage/heap | |
parent | 2dee6a74b202badd978dbdd3425b4c232fac9e6d (diff) | |
download | mariadb-git-4fade4da6c05bd4e8c3b54892fb81592a1afa60d.tar.gz |
Add -berok for head test on AIX
Diffstat (limited to 'storage/heap')
-rw-r--r-- | storage/heap/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/storage/heap/CMakeLists.txt b/storage/heap/CMakeLists.txt index f3d10e1f186..a26124d0c1c 100644 --- a/storage/heap/CMakeLists.txt +++ b/storage/heap/CMakeLists.txt @@ -21,6 +21,11 @@ SET(HEAP_SOURCES _check.c _rectest.c hp_block.c hp_clear.c hp_close.c hp_create MYSQL_ADD_PLUGIN(heap ${HEAP_SOURCES} STORAGE_ENGINE MANDATORY RECOMPILE_FOR_EMBEDDED) +IF(CMAKE_SYSTEM_NAME MATCHES AIX AND CMAKE_BUILD_TYPE STREQUAL "DEBUG") + # Workaround linker bug on AIX + SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-berok") +ENDIF() + IF(WITH_UNIT_TESTS) ADD_EXECUTABLE(hp_test1 hp_test1.c) TARGET_LINK_LIBRARIES(hp_test1 heap mysys dbug strings) |