From 7da0513375e219d88b978e74dc3569e2aea703bb Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Mon, 22 Feb 2021 11:30:09 +0100 Subject: [PATCH] Specify pic for static libsysprof-capture --- libsysprof-capture-pic.patch | 24 ++++++++++++++++++++++++ sysprof.spec | 8 +++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 libsysprof-capture-pic.patch diff --git a/libsysprof-capture-pic.patch b/libsysprof-capture-pic.patch new file mode 100644 index 0000000..2a19814 --- /dev/null +++ b/libsysprof-capture-pic.patch @@ -0,0 +1,24 @@ +From 77a340e3f6189cc428f2d7856682b205be5d9ec3 Mon Sep 17 00:00:00 2001 +From: Christian Hergert +Date: Fri, 19 Feb 2021 09:37:24 -0800 +Subject: [PATCH] build: use specify pic for static libsysprof-capture + +--- + src/libsysprof-capture/meson.build | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/libsysprof-capture/meson.build b/src/libsysprof-capture/meson.build +index 6343165..e4e302c 100644 +--- a/src/libsysprof-capture/meson.build ++++ b/src/libsysprof-capture/meson.build +@@ -52,6 +52,7 @@ libsysprof_capture = static_library( + install_dir: get_option('libdir'), + install: not meson.is_subproject(), + gnu_symbol_visibility: 'hidden', ++ pic: true, + ) + + libsysprof_capture_include_dirs = include_directories('.') +-- +GitLab + diff --git a/sysprof.spec b/sysprof.spec index a2f89cd..58de443 100644 --- a/sysprof.spec +++ b/sysprof.spec @@ -2,13 +2,16 @@ Name: sysprof Version: 3.39.90 -Release: 1%{?dist} +Release: 2%{?dist} Summary: A system-wide Linux profiler License: GPLv3+ URL: http://www.sysprof.com Source0: https://download.gnome.org/sources/sysprof/3.39/sysprof-%{version}.tar.xz +# Backported from upstream +Patch0: libsysprof-capture-pic.patch + BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: gettext @@ -134,6 +137,9 @@ desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %changelog +* Mon Feb 22 2021 Kalev Lember - 3.39.90-2 +- Specify pic for static libsysprof-capture + * Thu Feb 18 2021 Kalev Lember - 3.39.90-1 - Update to 3.39.90