Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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=""
)