Skip to content

Commit 4fade4d

Browse files
Etienne Guesnetgrooverdan
authored andcommitted
Add -berok for head test on AIX
1 parent 2dee6a7 commit 4fade4d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

storage/heap/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ SET(HEAP_SOURCES _check.c _rectest.c hp_block.c hp_clear.c hp_close.c hp_create
2121

2222
MYSQL_ADD_PLUGIN(heap ${HEAP_SOURCES} STORAGE_ENGINE MANDATORY RECOMPILE_FOR_EMBEDDED)
2323

24+
IF(CMAKE_SYSTEM_NAME MATCHES AIX AND CMAKE_BUILD_TYPE STREQUAL "DEBUG")
25+
# Workaround linker bug on AIX
26+
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-berok")
27+
ENDIF()
28+
2429
IF(WITH_UNIT_TESTS)
2530
ADD_EXECUTABLE(hp_test1 hp_test1.c)
2631
TARGET_LINK_LIBRARIES(hp_test1 heap mysys dbug strings)

0 commit comments

Comments
 (0)