summaryrefslogtreecommitdiff
path: root/build_posix
diff options
context:
space:
mode:
authorDavid Hows <howsdav@gmail.com>2016-03-10 18:18:42 +1100
committerDavid Hows <howsdav@gmail.com>2016-03-10 18:18:42 +1100
commit34b9ee3248fb36acf4ab7a384d05f115a1e59122 (patch)
treee19f06002ecd9889f2b7c31bef4a8f7fd5c4dd66 /build_posix
parent140d34a3129bc12fc31dfb72e5cc8b78079899fc (diff)
downloadmongo-34b9ee3248fb36acf4ab7a384d05f115a1e59122.tar.gz
WT-2459 - Force the CC tag under powerPC
Diffstat (limited to 'build_posix')
-rw-r--r--build_posix/configure.ac.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/build_posix/configure.ac.in b/build_posix/configure.ac.in
index fc13ab2b183..f64f68e4491 100644
--- a/build_posix/configure.ac.in
+++ b/build_posix/configure.ac.in
@@ -34,6 +34,15 @@ AC_PROG_CC(cc gcc)
AC_PROG_CXX(c++ g++)
AM_PROG_AS(as gas)
+# Set the libtool tag flag on PowerPC
+AS_CASE([$host_cpu],
+ [ppc64*], [AM_LIBTOOLFLAGS="--tag=cc"],
+ [elf64lppc], [AM_LIBTOOLFLAGS="--tag=cc"],
+ [powerpc*], [AM_LIBTOOLFLAGS="--tag=cc"],
+ [])
+
+AC_SUBST(AM_LIBTOOLFLAGS)
+
if test "$GCC" = "yes"; then
# The Solaris gcc compiler gets the additional -pthreads flag.
if test "`uname -s`" = "SunOS"; then