Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2015-06-14 19:26:06 +0000
committerStijn Buys <ingar@osirion.org>2015-06-14 19:26:06 +0000
commitf8ac713c0c0015b51bff37c92955cd6a38cda83d (patch)
treefe2541e1aea9cc6a635a31c12033cbaea5bc32d8
parent1dcd07fc1c2f04a2a86851c5ee48f24a83baaa2f (diff)
Split --enable-static-libc configure option into --enable-static-libc and --enable-static-libstdc++
-rw-r--r--configure.ac20
1 files changed, 17 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 911ae81..ffaafd8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -167,13 +167,27 @@ AC_ARG_ENABLE(debug_messages,
)
dnl ----------------------------------------------------------------
-dnl static link
+dnl static libc
dnl
AC_ARG_ENABLE(static_libc,
- AC_HELP_STRING([--enable-static-libc], [staticly link with libc and libstdc++]),
+ AC_HELP_STRING([--enable-static-libc], [staticly link with libc]),
AC_MSG_RESULT(yes)
- STATIC_LDADD="-static-libgcc -static-libstdc++",
+ STATIC_LDADD="$STATIC_LDADD -static-libgcc",
+ AC_MSG_RESULT(no)
+ STATIC_LDADD=""
+)
+
+AC_SUBST(STATIC_LDADD)
+
+dnl ----------------------------------------------------------------
+dnl static libstdc++
+dnl
+
+AC_ARG_ENABLE(static_libc,
+ AC_HELP_STRING([--enable-static-libstdc++], [staticly link with libstdc++]),
+ AC_MSG_RESULT(yes)
+ STATIC_LDADD="$STATIC_LDADD -static-libstdc++",
AC_MSG_RESULT(no)
STATIC_LDADD=""
)