diff options
author | 2018-03-24 19:36:49 -0400 | |
---|---|---|
committer | 2018-03-24 19:36:49 -0400 | |
commit | 7d9db724a530d62f4d63a7b9543bc754f21041e4 (patch) | |
tree | 5ff3b2f438488c35321d54e827e89cc54f212634 | |
parent | f05a5b7a20a9df50fc8116324fe078ca473343d6 (diff) | |
download | textadept-7d9db724a530d62f4d63a7b9543bc754f21041e4.tar.gz textadept-7d9db724a530d62f4d63a7b9543bc754f21041e4.zip |
Ensure path to lua.sym is known when building.
When running multiple jobs, `make -C luajit` seems to affect the current working
directory such that lua.sym cannot be found by the linker in a separate job.
-rw-r--r-- | src/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Makefile b/src/Makefile index 27db5e41..50dc6bce 100644 --- a/src/Makefile +++ b/src/Makefile @@ -12,7 +12,7 @@ ifeq (win, $(findstring win, $(MAKECMDGOALS))) CXXFLAGS += -mms-bitfields LUA_CFLAGS = -DLUA_BUILD_AS_DLL -DLUA_LIB LDFLAGS = -static-libgcc -static-libstdc++ -Wl,--retain-symbols-file \ - -Wl,lua.sym + -Wl,$(shell pwd)/lua.sym ifeq (, $(findstring curses, $(MAKECMDGOALS))) CXXFLAGS += -mwindows LDFLAGS += -liconv @@ -62,7 +62,7 @@ else ifeq (osx, $(findstring osx, $(MAKECMDGOALS))) else # Build for Linux/BSD. LUA_CFLAGS = -DLUA_USE_LINUX - LDFLAGS = -rdynamic -Wl,--retain-symbols-file -Wl,lua.sym + LDFLAGS = -rdynamic -Wl,--retain-symbols-file -Wl,$(shell pwd)/lua.sym ifeq (Linux, $(shell uname -s)) LDFLAGS += -ldl else |