summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2016-12-27 09:57:59 +0800
committerruki <[email protected]>2016-12-27 09:57:59 +0800
commitdc3c4073a5c19907342ae31215f358176982d96c (patch)
tree536a9495990d2c841d35c8715315c4d7702ba84b
parent904e8c1e0a5ae2f0d6df767f41cf0a3a13a087e4 (diff)
fix link error for lubuntu
-rwxr-xr-xcore/makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/makefile b/core/makefile
index 0aad8533b..7c5617305 100755
--- a/core/makefile
+++ b/core/makefile
@@ -280,6 +280,11 @@ else
luajit_LIBNAMES := luajit
endif
+# config static
+ifeq ($(PLAT),linux)
+LDFLAG := $(LDFLAG) $(shell if [ -f "/etc/redhat-release" ]; then echo ""; else echo "-static"; fi )
+endif
+
# select package directory
ifneq ($(PACKAGE),)
PKG_DIR := $(PACKAGE)