summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-01-28 14:35:10 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-01-28 14:35:17 (GMT)
commit0bab5fef9e3bfb38df18d548d698c634f07e5724 (patch)
tree9b552e66fb08ba76b94af5b35f9eea0c5909090e
parentee1bed5058c69061dbc2c64871cabd8c2ab82d0e (diff)
parent98c40dd22e5afc1318103d741f46d99d17812169 (diff)
downloadCMake-0bab5fef9e3bfb38df18d548d698c634f07e5724.zip
CMake-0bab5fef9e3bfb38df18d548d698c634f07e5724.tar.gz
CMake-0bab5fef9e3bfb38df18d548d698c634f07e5724.tar.bz2
Merge topic 'bootstrap-aix-powerpc'
98c40dd22e bootstrap: Avoid TOC overflow on AIX powerpc 493d6a66bb bootstrap: Remove stray indentation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6911
-rwxr-xr-xbootstrap16
1 files changed, 15 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index 61dd3dd..e0791d5 100755
--- a/bootstrap
+++ b/bootstrap
@@ -157,12 +157,19 @@ else
cmake_system_hpux=false
fi
+# Determine whether this is AIX
+if echo "${cmake_system}" | grep AIX >/dev/null 2>&1; then
+ cmake_system_aix=true
+else
+ cmake_system_aix=false
+fi
+
# Determine whether this is Linux
if echo "${cmake_system}" | grep Linux >/dev/null 2>&1; then
cmake_system_linux=true
else
cmake_system_linux=false
- fi
+fi
# Determine whether this is a PA-RISC machine
# This only works for Linux or HP-UX, not other PA-RISC OSs (BSD maybe?). Also
@@ -1109,6 +1116,13 @@ if ${cmake_system_haiku}; then
cmake_ld_flags="${LDFLAGS} -lroot -lbe"
fi
+# Add AIX arch-specific link flags.
+if ${cmake_system_aix}; then
+ if uname -p | grep powerpc >/dev/null 2>&1; then
+ cmake_ld_flags="${LDFLAGS} -Wl,-bbigtoc"
+ fi
+fi
+
#-----------------------------------------------------------------------------
# Detect known toolchains on some platforms.
cmake_toolchains=''