diff options
| author | ruki <[email protected]> | 2016-12-27 09:48:49 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2017-01-06 17:20:08 +0800 |
| commit | 9c225acafa782821f6ec50eaa0f2060735fc7b7d (patch) | |
| tree | f7f1bd8da88c08b7a491dce180356d4e2733ba77 /core/makefile | |
| parent | cf15bd5f7162d6f009ff749e4fe6a29bd22cdda2 (diff) | |
fix link error for lubuntu
Diffstat (limited to 'core/makefile')
| -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) |
