From bc380447eb04fa65126cf710a09439637f60ec02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 26 May 2024 15:41:52 +0200 Subject: [PATCH] tests: fix compilation of tests on Rocky 9.4 --- ChangeLog.adoc | 2 +- tests/CMakeLists.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index f7243832d..7341e03b3 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -16,7 +16,7 @@ * tests: fix relay tests on s390x * tests: fix check of php plugin -* tests: fix compilation of tests on Fedora 40 +* tests: fix compilation of tests on Fedora 40 and Rocky 9.4 [[v4.3.0]] == Version 4.3.0 (2024-05-26) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 58c74e966..2aba8edf4 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -22,6 +22,10 @@ enable_language(CXX) remove_definitions(-DHAVE_CONFIG_H) include_directories(${CPPUTEST_INCLUDE_DIRS} ${PROJECT_BINARY_DIR} ${PROJECT_SOURCE_DIR}) +if(NOT CYGWIN) + add_definitions(-fPIC) +endif() + if(ENABLE_PYTHON) add_definitions(-DHAVE_PYTHON) endif()