【修改】修改lua-5.4.6中的makefile,将编译产物生成至output路径中,添加-fPIC方便编译动态库

This commit is contained in:
niubinghui
2024-07-30 14:28:41 +08:00
parent 83fee0616c
commit e4f230b3ca
2 changed files with 2 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
PLAT= guess
CC= gcc -std=gnu99
CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_3 $(SYSCFLAGS) $(MYCFLAGS)
CFLAGS= -O2 -Wall -fPIC -Wextra -DLUA_COMPAT_5_3 $(SYSCFLAGS) $(MYCFLAGS)
LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
LIBS= -lm $(SYSLIBS) $(MYLIBS)