mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-15 14:20:53 +00:00
IPO was added in 93e77ba274
The linker error was workaround by disabling IPO with same patch as in valkey.
17 lines
630 B
Diff
17 lines
630 B
Diff
# Fixes the following linker error:
|
|
# /usr/bin/ld.gold: error: .../LLVMgold.so: could not load plugin library:
|
|
# .../LLVMgold.so: cannot open shared object file: No such file or directory
|
|
# /usr/bin/ld.gold: fatal error: .../crtbegin_dynamic.o: unsupported ELF machine number 183
|
|
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -37,7 +37,7 @@
|
|
option(enable_lex_debug "Enable debugging info for lexical scanners in release builds [development]" OFF)
|
|
|
|
if(CMAKE_BUILD_TYPE STREQUAL "Release")
|
|
- set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE)
|
|
+ set(CMAKE_INTERPROCEDURAL_OPTIMIZATION FALSE)
|
|
endif()
|
|
|
|
include(CheckCXXCompilerFlag)
|