diff options
author | Stijn Buys <ingar@osirion.org> | 2015-06-14 19:26:06 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2015-06-14 19:26:06 +0000 |
commit | f8ac713c0c0015b51bff37c92955cd6a38cda83d (patch) | |
tree | fe2541e1aea9cc6a635a31c12033cbaea5bc32d8 | |
parent | 1dcd07fc1c2f04a2a86851c5ee48f24a83baaa2f (diff) |
Split --enable-static-libc configure option into --enable-static-libc and --enable-static-libstdc++
-rw-r--r-- | configure.ac | 20 |
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="" ) |