From bf87a0bfb6c2a0574b86d230669caa78fbc5bdd0b9735e75628066a1112986aa Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Sun, 5 Apr 2020 06:57:19 +0000 Subject: [PATCH] Accepting request 791411 from home:namtrac:branches:server:database - Add -Wl,-Bsymbolic -Wl,-Bsymbolic-functions to linker flags so that symbols are resolved locally if possible, this will avoid https://bugs.kde.org/show_bug.cgi?id=391362 OBS-URL: https://build.opensuse.org/request/show/791411 OBS-URL: https://build.opensuse.org/package/show/server:database/mariadb?expand=0&rev=251 --- mariadb.changes | 7 +++++++ mariadb.spec | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/mariadb.changes b/mariadb.changes index 983ed22..f0fe269 100644 --- a/mariadb.changes +++ b/mariadb.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Apr 4 18:13:48 UTC 2020 - Ismail Dönmez + +- Add -Wl,-Bsymbolic -Wl,-Bsymbolic-functions to linker flags so + that symbols are resolved locally if possible, this will avoid + https://bugs.kde.org/show_bug.cgi?id=391362 + ------------------------------------------------------------------- Tue Mar 24 05:46:49 UTC 2020 - Martin Liška diff --git a/mariadb.spec b/mariadb.spec index c01248f..2d983bd 100644 --- a/mariadb.spec +++ b/mariadb.spec @@ -469,9 +469,9 @@ export CXXFLAGS="$CFLAGS -felide-constructors" -DINSTALL_SQLBENCHDIR=share \ -DCMAKE_C_FLAGS="$CFLAGS" \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ - -DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -pie -Wl,-z,relro,-z,now" \ - -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -pie -Wl,-z,relro,-z,now" \ - -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -pie -Wl,-z,relro,-z,now" \ + -DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -pie -Wl,-z,relro,-z,now -Wl,-Bsymbolic -Wl,-Bsymbolic-functions" \ + -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -pie -Wl,-z,relro,-z,now -Wl,-Bsymbolic -Wl,-Bsymbolic-functions" \ + -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -pie -Wl,-z,relro,-z,now -Wl,-Bsymbolic -Wl,-Bsymbolic-functions" \ -DCMAKE_SKIP_RPATH=OFF \ -DCMAKE_SKIP_INSTALL_RPATH=ON \ -Wno-dev "$@" ..