From 341f5a385d156c1916137a1715673527c630979491a1d6b7e88388373d04b981 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 9 Aug 2022 08:09:44 +0000 Subject: [PATCH] add forced symvers OBS-URL: https://build.opensuse.org/package/show/security:forensics/libodraw?expand=0&rev=10 --- libodraw.changes | 5 +++++ libodraw.spec | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/libodraw.changes b/libodraw.changes index b95cdd5..9aca4cc 100644 --- a/libodraw.changes +++ b/libodraw.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 8 11:37:44 UTC 2022 - Jan Engelhardt + +- Add forced symvers + ------------------------------------------------------------------- Fri May 14 00:38:39 UTC 2021 - Jan Engelhardt diff --git a/libodraw.spec b/libodraw.spec index 13f5159..c72a988 100644 --- a/libodraw.spec +++ b/libodraw.spec @@ -1,7 +1,7 @@ # # spec file for package libodraw # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -87,7 +87,10 @@ cp "%{S:2}" . %build if [ ! -e configure ]; then ./autogen.sh; fi -%configure --disable-static --enable-wide-character-type +# see libcdata for version-sc +echo "V_%version { global: *; };" >v.sym +%configure --disable-static --enable-wide-character-type \ + LDFLAGS="-Wl,--version-script=$PWD/v.sym" %make_build %install