summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)