]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Work around a problem on Bluegene systems.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 6 Feb 2012 11:04:20 +0000 (11:04 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 6 Feb 2012 11:04:20 +0000 (11:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@24994 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/configure
deal.II/configure.in
deal.II/doc/news/changes.h

index 7ea06b6a69d263360f252f57f471a81417fd2dfc..0e301755923287119922e0aa09098189ce45dd0d 100755 (executable)
@@ -10012,6 +10012,13 @@ $as_echo "#define DEAL_II_HAVE_DARWIN_DYNACAST_BUG 1" >>confdefs.h
     ibm_xlc* )
            SHLIBFLAGS="-qmkshrobj"
           ;;
+
+    gcc*)
+                                                       case "$target" in
+             *powerpc* )
+                  SHLIBFLAGS="$SHLIBFLAGS -Wl,--relax"
+                  ;;
+           ;;
   esac
 
 
index e3ae8efc96de131b481f5b6c49ada3b5d9444d36..b277bb00a6afab0ad4c4e6c19edfa1c961b8d66d 100644 (file)
@@ -360,6 +360,17 @@ if test "x$enableshared" = "xyes" ; then
     ibm_xlc* )
            SHLIBFLAGS="-qmkshrobj"
           ;;
+
+    gcc*)
+           dnl When using GCC on PowerPC (e.g. on BlueGene systems) we
+           dnl get errors from the linker about relocations that have be
+           dnl truncated to fit. Passing --relax to the linker helps in
+           dnl these cases.
+           case "$target" in
+             *powerpc* )
+                  SHLIBFLAGS="$SHLIBFLAGS -Wl,--relax"
+                  ;;
+           ;;
   esac
 
   dnl See if we can use -Wl,-soname,... for linking
index b63d73834a31cfef61f22d5ed8b433e1d4cdf879..06441b12dc7ea617a6d39667817865b72df847b7 100644 (file)
@@ -34,6 +34,12 @@ inconvenience this causes.
 <h3>General</h3>
 
 <ol>
+<li> Fixed: Linking shared libraries on PowerPC systems (e.g. on
+BlueGene systems) failed due to a miscommunication between compiler
+and linker. This is now worked around.
+<br>
+(Aron Ahmedia, Wolfgang Bangerth, 2012/02/06)
+
 <li> New: There is now a distributed deal.II vector class
 parallel::distributed::Vector<Number> that can be used with MPI. The
 vector is based on a contiguous locally owned range and allows easy

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.