From: oliver Date: Sat, 3 Sep 2005 17:16:09 +0000 (+0000) Subject: The gcc under OSX does not like the "-static" flag. This change X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffc9a7d705358b854e54a4e2349766157affecca;p=dealii-svn.git The gcc under OSX does not like the "-static" flag. This change removes it if the target is power-pc-darwin*. git-svn-id: https://svn.dealii.org/trunk@11362 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/configure.in b/deal.II/configure.in index 42244f08aa..02c420b51d 100644 --- a/deal.II/configure.in +++ b/deal.II/configure.in @@ -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)