diff options
author | Etienne Guesnet <etienne.guesnet.external@atos.net> | 2020-09-11 16:18:34 +0200 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2020-12-16 08:07:04 +1100 |
commit | 1d7fc7280e6c22b66a3d62a471e670ba8bcdb528 (patch) | |
tree | 141a3ebfac1e7b92dbe50ad6a6d7eb715d5b37ef /cmake | |
parent | b23e545773bbbf106b4a8e33ca2e221ce599ba3a (diff) | |
download | mariadb-git-1d7fc7280e6c22b66a3d62a471e670ba8bcdb528.tar.gz |
Add flags for AIX build
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/os/AIX.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/os/AIX.cmake b/cmake/os/AIX.cmake index 521f829e859..5ccc77c1606 100644 --- a/cmake/os/AIX.cmake +++ b/cmake/os/AIX.cmake @@ -16,6 +16,10 @@ #Enable 64 bit file offsets SET(_LARGE_FILES 1) +SET(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> -X32_64 qc <TARGET> <LINK_FLAGS> <OBJECTS>") +SET(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> -X32_64 q <TARGET> <LINK_FLAGS> <OBJECTS>") +SET(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> -X32_64 qc <TARGET> <LINK_FLAGS> <OBJECTS>") +SET(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> -X32_64 q <TARGET> <LINK_FLAGS> <OBJECTS>") IF(__AIX_COMPILER_XL) # Fix xlC oddity - it complains about same inline function defined multiple times @@ -25,4 +29,7 @@ INCLUDE(CheckCXXCompilerFlag) IF(HAVE_QSTATICINLINE) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -qstaticinline") ENDIF() +ELSE() + SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -maix64 -pthread -mcmodel=large") + SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -maix64 -pthread -mcmodel=large") ENDIF() |