From ffc9a7d705358b854e54a4e2349766157affecca Mon Sep 17 00:00:00 2001 From: oliver Date: Sat, 3 Sep 2005 17:16:09 +0000 Subject: [PATCH] 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 --- deal.II/configure.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) -- 2.39.5