Commit 1d7fc728 authored by Etienne Guesnet's avatar Etienne Guesnet Committed by Daniel Black

Add flags for AIX build

parent b23e5457
...@@ -16,6 +16,10 @@ ...@@ -16,6 +16,10 @@
#Enable 64 bit file offsets #Enable 64 bit file offsets
SET(_LARGE_FILES 1) 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) IF(__AIX_COMPILER_XL)
# Fix xlC oddity - it complains about same inline function defined multiple times # Fix xlC oddity - it complains about same inline function defined multiple times
...@@ -25,4 +29,7 @@ INCLUDE(CheckCXXCompilerFlag) ...@@ -25,4 +29,7 @@ INCLUDE(CheckCXXCompilerFlag)
IF(HAVE_QSTATICINLINE) IF(HAVE_QSTATICINLINE)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -qstaticinline") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -qstaticinline")
ENDIF() 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() ENDIF()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment