Accepting request 1135772 from home:jengelh:branches:devel:libraries:c_c++

- Update symbol versioning pattern to actually match symbols

OBS-URL: https://build.opensuse.org/request/show/1135772
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/spdlog?expand=0&rev=92
This commit is contained in:
Bernd Ritter
2024-01-02 09:34:36 +00:00
committed by Git OBS Bridge
parent 7319bccc04
commit 07ce18bf45
2 changed files with 7 additions and 2 deletions

View File

@@ -79,8 +79,8 @@ export CXX=g++
test -x "$(type -p g++-8)" && export CXX=g++-8
# spdlog embodies fmt ABI; add some symvers so both ld.so and rpm notice the change.
v=$(rpm -q --qf="%%{VERSION}" --whatprovides "pkgconfig(fmt)" | sed -e 's/\..*//')
echo "FMT_$v { global: _ZN6spdlog*N3fmt${#v}v${v}; };" >spdlog.sym
v=v$(rpm -q --qf="%%{VERSION}" --whatprovides "pkgconfig(fmt)" | sed -e 's/\..*//')
echo "FMT_$v { global: _ZN6spdlog*N3fmt${#v}${v}*; };" >spdlog.sym
v="$PWD/spdlog.sym"
%cmake -G Ninja \