From 927c27a0c52aca21765731b6a2ff4a4b6f1ff4ccbb87c2a3249055b0b1d0f02b Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 9 Aug 2022 08:09:36 +0000 Subject: [PATCH] add forced symvers OBS-URL: https://build.opensuse.org/package/show/security:forensics/libmodi?expand=0&rev=9 --- libmodi.changes | 5 +++++ libmodi.spec | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/libmodi.changes b/libmodi.changes index 6304f59..6622723 100644 --- a/libmodi.changes +++ b/libmodi.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 8 11:37:44 UTC 2022 - Jan Engelhardt + +- Add forced symvers + ------------------------------------------------------------------- Sun Jan 23 20:52:51 UTC 2022 - Jan Engelhardt diff --git a/libmodi.spec b/libmodi.spec index c6cb498..be96f32 100644 --- a/libmodi.spec +++ b/libmodi.spec @@ -107,7 +107,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