mirror of
https://github.com/termux/termux-packages.git
synced 2025-08-10 10:41:48 +00:00
47 lines
1.2 KiB
Diff
47 lines
1.2 KiB
Diff
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -67,7 +67,6 @@
|
|
# cmake modules
|
|
include(CheckCCompilerFlag)
|
|
include(CheckCSourceCompiles)
|
|
-include(CheckIPOSupported)
|
|
include(GNUInstallDirs)
|
|
|
|
# custom cmake modules
|
|
@@ -126,7 +125,6 @@
|
|
# required dependencies
|
|
find_package(Threads REQUIRED)
|
|
find_package(PCRE2 REQUIRED)
|
|
-find_library(MATH_LIB m REQUIRED)
|
|
find_package(OpenSSL REQUIRED)
|
|
|
|
# check dependencies versions
|
|
@@ -163,6 +161,8 @@
|
|
endif()
|
|
message("Searching for lua")
|
|
find_package(Lua)
|
|
+ set(LUA_LIBRARIES lua5.4)
|
|
+ set(LUA_FOUND TRUE)
|
|
if(LUA_FOUND)
|
|
if(NOT LUA_VERSION_STRING VERSION_GREATER_EQUAL "5.3.0")
|
|
message("Lua is disabled because a version lower than 5.3.0 was found")
|
|
@@ -260,7 +260,7 @@
|
|
"-fstack-protector-strong"
|
|
"-pedantic"
|
|
"-Wall"
|
|
- "-Werror"
|
|
+ "-Wno-unused-command-line-argument"
|
|
"-Wextra"
|
|
"-Wformat"
|
|
"-Wformat-security"
|
|
@@ -349,8 +349,7 @@
|
|
add_compile_options("-g")
|
|
endif()
|
|
# IPO/LTO support
|
|
- check_ipo_supported()
|
|
- set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
|
+ set(CMAKE_INTERPROCEDURAL_OPTIMIZATION FALSE)
|
|
else()
|
|
# if CMAKE_BUILD_TYPE is not Debug, Release, RelWithDebInfo or MinSizeRel
|
|
# do not alter compile options
|