From b2de5ccac14d88402e91f63fe180afc9e7d805cb Mon Sep 17 00:00:00 2001 From: Steven Noonan Date: Sat, 17 Oct 2009 07:56:05 -0700 Subject: makefile: add option for static linking Signed-off-by: Steven Noonan --- crawl-ref/source/makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/makefile') diff --git a/crawl-ref/source/makefile b/crawl-ref/source/makefile index 172afd819d..f3bcd0b51b 100644 --- a/crawl-ref/source/makefile +++ b/crawl-ref/source/makefile @@ -74,6 +74,7 @@ uname_V := $(shell sh -c 'uname -v 2>/dev/null || echo not') ifdef CROSSHOST NO_PKGCONFIG = YesPlease NO_SDLCONFIG = YesPlease + NEED_STATIC = YesPlease CONFIGURE_FLAGS += --host=$(CROSSHOST) SDLCONFIG := $(shell pwd)/contrib/install/bin/sdl-config endif @@ -128,6 +129,9 @@ endif ifndef NO_RDYNAMIC LDFLAGS := -rdynamic endif +ifdef NEED_STATIC +LDFLAGS += -static +endif # Permissions to set on the game executable. MCHMOD := 2755 -- cgit v1.2.3-54-g00ecf