summaryrefslogtreecommitdiff
path: root/bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap')
-rwxr-xr-xbootstrap19
1 files changed, 18 insertions, 1 deletions
diff --git a/bootstrap b/bootstrap
index a487375ae..e0791d589 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
@@ -341,6 +348,7 @@ CMAKE_CXX_SOURCES="\
cmFileCommand \
cmFileCopier \
cmFileInstaller \
+ cmFileSet \
cmFileTime \
cmFileTimeCache \
cmFileTimes \
@@ -386,6 +394,7 @@ CMAKE_CXX_SOURCES="\
cmInstallCommandArguments \
cmInstallDirectoryGenerator \
cmInstallExportGenerator \
+ cmInstallFileSetGenerator \
cmInstallFilesCommand \
cmInstallFilesGenerator \
cmInstallGenerator \
@@ -623,6 +632,7 @@ else
src/unix/process.c \
src/unix/signal.c \
src/unix/stream.c \
+ src/unix/tcp.c \
"
fi
@@ -1106,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=''