aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-03-11 21:31:46 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-03-11 21:31:46 +0000
commit543420ccd2c3c23437405b391e3f9fe1d05223f7 (patch)
tree7581f8eb90cd26fd51c5e406f31f561e0e4eb603 /configure.ac
parent064022548bcbf4d45705fdbff8441f2b5da5f682 (diff)
parent7c009509676b4580065fdc6f0084a93b9758fac0 (diff)
downloadrtmux-543420ccd2c3c23437405b391e3f9fe1d05223f7.tar.gz
rtmux-543420ccd2c3c23437405b391e3f9fe1d05223f7.tar.bz2
rtmux-543420ccd2c3c23437405b391e3f9fe1d05223f7.zip
Merge branch 'master' of ssh://git.code.sf.net/p/tmux/tmux-code
Diffstat (limited to 'configure.ac')
-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)