Skip to content
Snippets Groups Projects
Commit 121c4d32 authored by Mattias Ellert's avatar Mattias Ellert Committed by Pere Mato Vila
Browse files

Allow building for ppc64 as well as ppc64le

parent 2638f6fc
No related branches found
No related tags found
No related merge requests found
......@@ -30,8 +30,8 @@ elseif(${SYSCTL_OUTPUT} MATCHES aarch64)
else()
message(FATAL_ERROR "There is no Setup for this compiler up to now. Don't know what to do. Stop cmake at this point.")
endif()
elseif(${SYSCTL_OUTPUT} MATCHES ppc64le)
message(STATUS "Found a 64bit ppc64 little endian system")
elseif(${SYSCTL_OUTPUT} MATCHES ppc64)
message(STATUS "Found a 64bit PPC system (ppc64/ppc64le)")
set(SPECIAL_CINT_FLAGS "-DG__64BIT")
if(CMAKE_COMPILER_IS_GNUCXX)
message(STATUS "Found GNU compiler collection")
......
......@@ -205,17 +205,12 @@ linuxicc)
;;
linuxppcgcc)
# PPC Linux with gcc
auxcflags="${cxxversionflag} -Wno-deprecated-declarations -fsigned-char -I/usr/X11/include"
auxcflags="${cxxversionflag} -Wno-deprecated-declarations -m32 -fsigned-char"
auxldflags="-m32"
auxlibs="-lm -ldl -rdynamic"
;;
linuxppc64gcc)
# PPC64 (64 bit mode) Linux with gcc 3.x
auxcflags="${cxxversionflag} -Wno-deprecated-declarations -m64 -fsigned-char"
auxldflags="-m64"
auxlibs="-lm -ldl -rdynamic"
;;
ppc64le)
# PPC64 (64 bit mode) little endian
# PPC64/PPC64LE (64 bit mode) Linux with gcc
auxcflags="${cxxversionflag} -Wno-deprecated-declarations -m64 -fsigned-char"
auxldflags="-m64"
auxlibs="-lm -ldl -rdynamic"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment