2020-11-09 15:59:12 +00:00
|
|
|
diff -Naur fluent-bit.old/cmake/luajit.cmake fluent-bit.new/cmake/luajit.cmake
|
|
|
|
--- fluent-bit.old/cmake/luajit.cmake
|
|
|
|
+++ fluent-bit.new/cmake/luajit.cmake
|
2021-12-06 16:07:01 +00:00
|
|
|
@@ -12,15 +12,7 @@
|
2020-11-09 15:59:12 +00:00
|
|
|
set(LUAJIT_DEST ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
if (CMAKE_SYSTEM_NAME MATCHES "Darwin")
|
|
|
|
- set(CFLAGS "${CFLAGS} -isysroot ${CMAKE_OSX_SYSROOT} -fno-stack-check")
|
|
|
|
- if (CMAKE_HOST_SYSTEM_VERSION VERSION_GREATER_EQUAL 20
|
|
|
|
- AND CMAKE_HOST_SYSTEM_VERSION VERSION_LESS 21)
|
|
|
|
- set(DEPLOYMENT_TARGET "MACOSX_DEPLOYMENT_TARGET=11.0")
|
|
|
|
- else()
|
|
|
|
- set(DEPLOYMENT_TARGET "MACOSX_DEPLOYMENT_TARGET=10.15")
|
|
|
|
- endif()
|
|
|
|
-else()
|
|
|
|
- set(DEPLOYMENT_TARGET "")
|
|
|
|
+ set(CFLAGS "${CFLAGS} -fno-stack-check")
|
|
|
|
endif()
|
|
|
|
|
2020-11-09 15:59:12 +00:00
|
|
|
# luajit (UNIX)
|
2021-12-06 16:07:01 +00:00
|
|
|
@@ -30,7 +22,7 @@
|
|
|
|
EXCLUDE_FROM_ALL TRUE
|
|
|
|
SOURCE_DIR ${LUAJIT_SRC}
|
|
|
|
CONFIGURE_COMMAND ./configure
|
|
|
|
- BUILD_COMMAND $(MAKE) CROSS=${CROSS_PREFIX} CFLAGS=${CFLAGS} BUILD_MODE=static "XCFLAGS=-fPIC" ${DEPLOYMENT_TARGET}
|
|
|
|
+ BUILD_COMMAND $(MAKE) DEFAULT_CC=cc CROSS=${CROSS_PREFIX} CFLAGS=${CFLAGS} BUILD_MODE=static "XCFLAGS=-fPIC"
|
|
|
|
INSTALL_COMMAND cp src/libluajit.a "${LUAJIT_DEST}/lib/libluajit.a")
|
|
|
|
|
|
|
|
# luajit (Windows)
|