aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-03-06 14:58:48 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-03-06 14:58:48 +0000
commite964ff70e696f30f0301d11deb45c8ada54e0c55 (patch)
tree44035eb754535bbfefbed8491904ae1108d76bf8
parentbc3580fa066ee38fd752b8414cb72af7bf3861b8 (diff)
downloadrtmux-e964ff70e696f30f0301d11deb45c8ada54e0c55.tar.gz
rtmux-e964ff70e696f30f0301d11deb45c8ada54e0c55.tar.bz2
rtmux-e964ff70e696f30f0301d11deb45c8ada54e0c55.zip
Fix --disable-static, reported by Shea Levy.
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 84aec0fb..9e060df7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -53,8 +53,11 @@ AM_CONDITIONAL(IS_DEBUG, test "x$found_debug" = xyes)
AC_ARG_ENABLE(
static,
AC_HELP_STRING(--enable-static, create a static build),
- [LDFLAGS="$LDFLAGS -static"]
+ found_static=$enable_static
)
+if test "x$found_static" = xyes; then
+ LDFLAGS="$LDFLAGS -static"
+fi
# Is this gcc?
AM_CONDITIONAL(IS_GCC, test "x$GCC" = xyes)