]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Expand tuning for PowerPC64
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Sep 2003 22:21:41 +0000 (22:21 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Sep 2003 22:21:41 +0000 (22:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@7991 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index c575dfe24f2aba328923eee4f6f8524ef102dbd2..87603fe307ddd79351883b174d1b91c47ae61e33 100644 (file)
@@ -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
        ;;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.