summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/makefile4
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