From 0f2beeb90bc66bb39167662a8cae0bd11f6ab723 Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 29 Jun 2021 23:03:50 +0800 Subject: improve makefile --- core/makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/makefile b/core/makefile index f51e0f735..a6b9a82e4 100644 --- a/core/makefile +++ b/core/makefile @@ -278,7 +278,9 @@ base_LIBNAMES := base_LIBNAMES += $(shell if { cat detect/curses.c | $(CC) -xc - -lcurses -ltinfo -o /dev/null 2>/dev/null; }; then echo curses tinfo; fi ) base_LIBNAMES += $(shell if { cat detect/readline.c | $(CC) -xc - -lreadline -o /dev/null 2>/dev/null; }; then echo readline; fi ) base_LIBNAMES += $(shell if { cat detect/tbox.c | $(CC) -xc - -ltbox -o /dev/null 2>/dev/null; }; then echo tbox; fi ) +ifeq ($(LUAJIT_SYSTEM),y) base_LIBNAMES += $(shell if { cat detect/luajit.c | $(CC) -xc - $(shell pkg-config --libs --cflags luajit) -o /dev/null 2>/dev/null; }; then echo luajit-5.1; fi ) +endif ifneq ($(TERMUX_ARCH),) # on termux/ci? base_LIBNAMES += m dl else -- cgit v1.3.1