diff options
| author | niubinghui <[email protected]> | 2024-07-30 14:28:41 +0800 |
|---|---|---|
| committer | niubinghui <[email protected]> | 2024-07-30 14:28:41 +0800 |
| commit | e4f230b3cace23cebd057243fc1fd576eaa30858 (patch) | |
| tree | a4c772b675f32dcca38d4c10979760f56c0699ab | |
| parent | 83fee0616c58674e726ff6be54d6ba4e9b9f5d6b (diff) | |
【修改】修改lua-5.4.6中的makefile,将编译产物生成至output路径中,添加-fPIC方便编译动态库
| -rw-r--r-- | thirdPart/lua-5.4.6/Makefile | 2 | ||||
| -rw-r--r-- | thirdPart/lua-5.4.6/src/Makefile | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/thirdPart/lua-5.4.6/Makefile b/thirdPart/lua-5.4.6/Makefile index 8efa2eb..4291113 100644 --- a/thirdPart/lua-5.4.6/Makefile +++ b/thirdPart/lua-5.4.6/Makefile @@ -10,7 +10,7 @@ PLAT= guess # so take care if INSTALL_TOP is not an absolute path. See the local target. # You may want to make INSTALL_LMOD and INSTALL_CMOD consistent with # LUA_ROOT, LUA_LDIR, and LUA_CDIR in luaconf.h. -INSTALL_TOP= /usr/local +INSTALL_TOP= ./../../../output INSTALL_BIN= $(INSTALL_TOP)/bin INSTALL_INC= $(INSTALL_TOP)/include INSTALL_LIB= $(INSTALL_TOP)/lib diff --git a/thirdPart/lua-5.4.6/src/Makefile b/thirdPart/lua-5.4.6/src/Makefile index b771196..3a345b2 100644 --- a/thirdPart/lua-5.4.6/src/Makefile +++ b/thirdPart/lua-5.4.6/src/Makefile @@ -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) |
