From cbf7ab6e6f1faeb5a730f4ca9d0b804ddfd282a6ae199a4274f501defaf86112 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 9 Aug 2022 08:09:40 +0000 Subject: [PATCH] add forced symvers OBS-URL: https://build.opensuse.org/package/show/security:forensics/libnk2?expand=0&rev=3 --- libnk2.changes | 5 +++++ libnk2.spec | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libnk2.changes b/libnk2.changes index 583e880..d45fe33 100644 --- a/libnk2.changes +++ b/libnk2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Aug 8 11:37:44 UTC 2022 - Jan Engelhardt + +- Add forced symvers + ------------------------------------------------------------------- Tue May 18 10:24:24 UTC 2021 - Jan Engelhardt diff --git a/libnk2.spec b/libnk2.spec index c2eed13..dca0ab9 100644 --- a/libnk2.spec +++ b/libnk2.spec @@ -1,7 +1,7 @@ # # spec file for package libnk2 # -# 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 @@ -84,7 +84,9 @@ read Outlook Nickfile files. %build if [ ! -e configure ]; then ./autogen.sh; fi -%configure --disable-static +# see libcdata for version-sc +echo "V_%version { global: *; };" >v.sym +%configure --disable-static LDFLAGS="-Wl,--version-script=$PWD/v.sym" %make_build %install