diff options
| -rwxr-xr-x | core/makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/core/makefile b/core/makefile index 0aad8533b..6640f228d 100755 --- a/core/makefile +++ b/core/makefile @@ -270,7 +270,7 @@ endif ifeq ($(PLAT),linux) base_LIBPATH := -base_LIBNAMES := rt m dl pthread +base_LIBNAMES := m dl pthread endif # config luajit @@ -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) |
