From 11dcbd755677ed1c6f6f0b136a45370fe0792010 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Tue, 4 Jan 2011 09:43:14 +0000 Subject: Support --enable-static. --- Makefile.am | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 21683ad4..4c18852d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,4 +1,4 @@ -# $Id: Makefile.am,v 1.3 2011-01-03 23:54:51 tcunha Exp $ +# $Id: Makefile.am,v 1.4 2011-01-04 09:43:14 nicm Exp $ # Obvious program stuff. bin_PROGRAMS = tmux @@ -39,6 +39,11 @@ CPPFLAGS += -I. -I- -I/usr/local/include endif endif +# Set flags for static. +if IS_STATIC +LDFLAGS+= -static +endif + # Set flags for Solaris. if IS_SUNOS CPPFLAGS+= -D_XPG4_2 -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS -- cgit