|
|
02a573 |
From 5f8879927fa34827f1b367eac311845e6ebec9a7 Mon Sep 17 00:00:00 2001
|
|
|
02a573 |
From: =?UTF-8?q?Jan=20=C4=8Cern=C3=BD?= <jcerny@redhat.com>
|
|
|
02a573 |
Date: Thu, 10 Jun 2021 13:41:25 +0200
|
|
|
02a573 |
Subject: [PATCH] Do not set Rpath
|
|
|
02a573 |
|
|
|
02a573 |
See: https://docs.fedoraproject.org/en-US/packaging-guidelines/#_beware_of_rpath
|
|
|
02a573 |
|
|
|
02a573 |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1967200
|
|
|
02a573 |
---
|
|
|
02a573 |
CMakeLists.txt | 18 ------------------
|
|
|
02a573 |
1 file changed, 18 deletions(-)
|
|
|
02a573 |
|
|
|
02a573 |
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
|
02a573 |
index c70ba29bf..cc7b5e005 100644
|
|
|
02a573 |
--- a/CMakeLists.txt
|
|
|
02a573 |
+++ b/CMakeLists.txt
|
|
|
02a573 |
@@ -482,25 +482,7 @@ else()
|
|
|
02a573 |
endif()
|
|
|
02a573 |
set(OSCAP_TEMP_DIR "/tmp" CACHE STRING "use different temporary directory to execute sce scripts (default=/tmp)")
|
|
|
02a573 |
|
|
|
02a573 |
-# ---------- RPATHS for linking
|
|
|
02a573 |
|
|
|
02a573 |
-# see https://cmake.org/Wiki/CMake_RPATH_handling
|
|
|
02a573 |
-
|
|
|
02a573 |
-# use, i.e. don't skip the full RPATH for the build tree
|
|
|
02a573 |
-set(CMAKE_SKIP_BUILD_RPATH FALSE)
|
|
|
02a573 |
-
|
|
|
02a573 |
-# when building, don't use the install RPATH already
|
|
|
02a573 |
-# (but later on when installing)
|
|
|
02a573 |
-set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
|
|
|
02a573 |
-
|
|
|
02a573 |
-set(CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR})
|
|
|
02a573 |
-
|
|
|
02a573 |
-# add the automatically determined parts of the RPATH
|
|
|
02a573 |
-# which point to directories outside the build tree to the install RPATH
|
|
|
02a573 |
-set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
|
|
02a573 |
-
|
|
|
02a573 |
-# Turn on RPATH for OSX for policy warning
|
|
|
02a573 |
-set(CMAKE_MACOSX_RPATH ON)
|
|
|
02a573 |
# ---------- CONFIGURATION
|
|
|
02a573 |
|
|
|
02a573 |
configure_file("config.h.in" "config.h")
|