From db53017b40d5a4e31c76616ce04af85bfa2265eb Mon Sep 17 00:00:00 2001 From: wolf Date: Fri, 19 Sep 2003 22:21:41 +0000 Subject: [PATCH] Expand tuning for PowerPC64 git-svn-id: https://svn.dealii.org/trunk@7991 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index c575dfe24f..87603fe307 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -869,10 +869,22 @@ AC_DEFUN(DEAL_II_CHECK_CPU_OPTIMIZATIONS, dnl AC_MSG_RESULT(PowerPC64) case $GXX_VERSION in gcc*) + dnl Tune for this processor CXXFLAGSG="$CXXFLAGSG -maix64" CXXFLAGSO="$CXXFLAGSO -maix64 -mpowerpc64 -mcpu=powerpc64 -mtune=powerpc64" + + dnl On this stupid system, we get TOC overflows if we use the + dnl standard flags, so restrict TOC entries to the absolute minimal + CXXFLAGSG="$CXXFLAGSG -mminimal-toc" + CXXFLAGSO="$CXXFLAGSO -mminimal-toc" + + dnl When generating 64-bit code, we need to pass respective flags when + dnl linking (also for static libs) AR="$AR -X 64" LDFLAGS="$LDFLAGS -maix64" + + dnl And we must always link with pthreads + LIBS="$LIBS -lpthread ;; esac ;; -- 2.39.5