diff options
author | Steven Noonan <steven@uplinklabs.net> | 2009-10-17 07:56:05 -0700 |
---|---|---|
committer | Steven Noonan <steven@uplinklabs.net> | 2009-10-17 07:56:24 -0700 |
commit | b2de5ccac14d88402e91f63fe180afc9e7d805cb (patch) | |
tree | a82aebd8f31d310af5bbb797215826c507278cb0 /crawl-ref/source | |
parent | 050ad8a6b955cb29b4eb337ba07399da1fb6c3b0 (diff) | |
download | crawl-ref-b2de5ccac14d88402e91f63fe180afc9e7d805cb.tar.gz crawl-ref-b2de5ccac14d88402e91f63fe180afc9e7d805cb.zip |
makefile: add option for static linking
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source')
-rw-r--r-- | crawl-ref/source/makefile | 4 |
1 files changed, 4 insertions, 0 deletions
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 |