From c83050facc32f50cc0e0268d93a08eb6fefebb3d Mon Sep 17 00:00:00 2001 From: Eduardo Silva Date: Tue, 26 Jul 2022 16:21:40 -0600 Subject: [PATCH] build: luajit: set LDFLAGS on MacOS Signed-off-by: Eduardo Silva --- cmake/luajit.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/luajit.cmake b/cmake/luajit.cmake index 7741805a938..29ccd0d3d61 100644 --- a/cmake/luajit.cmake +++ b/cmake/luajit.cmake @@ -32,12 +32,13 @@ endif() # luajit (UNIX) # ============= + ExternalProject_Add(luajit BUILD_IN_SOURCE TRUE EXCLUDE_FROM_ALL TRUE SOURCE_DIR ${LUAJIT_SRC} CONFIGURE_COMMAND ./configure - BUILD_COMMAND $(MAKE) CC=${CMAKE_C_COMPILER} ${DEPLOYMENT_TARGET} CFLAGS=${CFLAGS} BUILDMODE=static "XCFLAGS=-fPIC" + BUILD_COMMAND $(MAKE) CC=${CMAKE_C_COMPILER} ${DEPLOYMENT_TARGET} CFLAGS=${CFLAGS} LDFLAGS="-L${CMAKE_OSX_SYSROOT}/usr/lib" BUILDMODE=static "XCFLAGS=-fPIC" INSTALL_COMMAND cp src/libluajit.a "${LUAJIT_DEST}/lib/libluajit.a") # luajit (Windows)