Skip to content

Commit

Permalink
build: luajit: set LDFLAGS on MacOS
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Jul 26, 2022
1 parent 361e8ff commit c83050f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/luajit.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c83050f

Please sign in to comment.