From 9c225acafa782821f6ec50eaa0f2060735fc7b7d Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 27 Dec 2016 09:48:49 +0800 Subject: fix link error for lubuntu --- core/makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- cgit v1.3.1