From f8ac713c0c0015b51bff37c92955cd6a38cda83d Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sun, 14 Jun 2015 19:26:06 +0000 Subject: Split --enable-static-libc configure option into --enable-static-libc and --enable-static-libstdc++ --- configure.ac | 20 +++++++++++++++++--- 1 file 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="" ) -- cgit v1.2.3