openjdk-23: use OpenJDK 23 as the boot JDK
[oi-userland.git] / components / library / telegramdb / patches / 01-CMakeLists.patch
blob3d0ca71fb7522bc6027183686814d6577d181587
1 --- td-1.6.0/CMakeLists.txt.orig
2 +++ td-1.6.0/CMakeLists.txt
3 @@ -173,7 +173,7 @@
4 else()
5 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ffunction-sections -fdata-sections")
6 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ffunction-sections -fdata-sections")
7 - set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--gc-sections -Wl,--exclude-libs,ALL")
8 + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,ignore")
9 endif()
11 if (MEMPROF)
12 @@ -199,6 +199,10 @@
13 add_definitions(-D_FILE_OFFSET_BITS=64)
14 endif()
16 +if (CMAKE_SYSTEM_NAME STREQUAL "SunOS")
17 + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lsocket -lnsl")
18 +endif()
20 include(AddCXXCompilerFlag)
21 if (NOT MSVC)
22 add_cxx_compiler_flag("-Wall")