Support --enable-static.

This commit is contained in:
Nicholas Marriott
2011-01-04 09:43:14 +00:00
parent 03ec2482c9
commit 11dcbd7556
2 changed files with 20 additions and 4 deletions

View File

@ -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