]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
The gcc under OSX does not like the "-static" flag. This change
authoroliver <oliver@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 3 Sep 2005 17:16:09 +0000 (17:16 +0000)
committeroliver <oliver@0785d39b-7218-0410-832d-ea1e28bc413d>
Sat, 3 Sep 2005 17:16:09 +0000 (17:16 +0000)
removes it if the target is power-pc-darwin*.

git-svn-id: https://svn.dealii.org/trunk@11362 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/configure.in

index 42244f08aaeaf40e5335cc313a4fea3c324de6e8..02c420b51d1dc3f51c20e46010b4b507b9d02806 100644 (file)
@@ -298,7 +298,13 @@ else
 dnl The gcc compiler needs -static for static linking. For the case
 dnl other compilers do not like this flag we should introduce a
 dnl LDFLAGSSTATIC variable and check -static through AC_TRY_LINK.
-  LDFLAGS="$LDFLAGS -static"
+  LDFLAGSSTATIC="-static"
+  case "$target" in
+    powerpc-apple-darwin* )
+       LDFLAGSSTATIC=""
+          ;;
+  esac
+  LDFLAGS="$LDFLAGS $LDFLAGSSTATIC"
 fi
 
 AC_SUBST(enableshared)

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.