From 5886bf7bfc2f0d630d68ee5e5d7525bff7b55ccd35f2dce0d2ed1ab88b327f2c Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 9 Aug 2022 08:09:47 +0000 Subject: [PATCH] add forced symvers OBS-URL: https://build.opensuse.org/package/show/security:forensics/libphdi?expand=0&rev=8 --- libphdi.changes | 5 +++++ libphdi.spec | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/libphdi.changes b/libphdi.changes index 39332f7..f905230 100644 --- a/libphdi.changes +++ b/libphdi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 8 11:37:44 UTC 2022 - Jan Engelhardt + +- Add forced symvers + ------------------------------------------------------------------- Tue Mar 1 19:00:08 UTC 2022 - Jan Engelhardt diff --git a/libphdi.spec b/libphdi.spec index 87f447c..f46b42c 100644 --- a/libphdi.spec +++ b/libphdi.spec @@ -94,7 +94,11 @@ autoreconf -fi # OOT builds are presently broken, so we have to install # within each python iteration now, not in %%install. %{python_expand # -%configure --disable-static --enable-wide-character-type --enable-python PYTHON_VERSION="%{$python_bin_suffix}" +# see libcdata for version-sc +echo "V_%version { global: *; };" >v.sym +%configure --disable-static --enable-wide-character-type --enable-python \ + PYTHON_VERSION="%{$python_bin_suffix}" \ + LDFLAGS="-Wl,--version-script=$PWD/v.sym" %make_build %make_install DESTDIR="%_builddir/rt" %make_build clean