From 7d9db724a530d62f4d63a7b9543bc754f21041e4 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 24 Mar 2018 19:36:49 -0400 Subject: 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. --- src/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3