Skip to content

Commit 87ceb03

Browse files
Add GLIBC_MIN_VERSION flags to CMake files
Co-authored-by: adityapatwardhan <[email protected]>
1 parent 2a5842e commit 87ceb03

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libpsl-native/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ project(PSL-NATIVE)
33

44
# Can't use add_compile_options with 2.8.11
55
set(CMAKE_BUILD_TYPE "Release")
6-
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Werror -fstack-protector-strong -fpie -D_FORTIFY_SOURCE=2 -gdwarf-5")
6+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Werror -fstack-protector-strong -fpie -D_FORTIFY_SOURCE=2 -DGLIBC_MIN_VERSION=2.27 -gdwarf-5")
77

88
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR "FreeBSD")
99
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-z,relro,-z,now")

src/libpsl-native/arm.toolchain.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
set(CMAKE_SYSTEM_NAME Linux)
22
set(CMAKE_SYSTEM_VERSION 1)
33
set(CMAKE_SYSTEM_PROCESSOR armv7l)
4-
set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++ -fstack-protector-strong -fpie -D_FORTIFY_SOURCE=2)
4+
set(CMAKE_CXX_COMPILER arm-linux-gnueabihf-g++ -fstack-protector-strong -fpie -D_FORTIFY_SOURCE=2 -DGLIBC_MIN_VERSION=2.35)
55
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,-z,relro,-z,now")
66
set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
77

0 commit comments

Comments
 (0)