Use %soname macro when linking the library

epel9
Petr Písař 10 years ago
parent 57e36b2710
commit 02c2e02b18

@ -49,7 +49,7 @@ sed -i -e 's/#include "miniz.c"/#include <miniz.h>/' miniz_tester.cpp
gcc %{optflags} -fPIC -DPIC -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 \
-fno-strict-aliasing %{name}.c -c -o %{name}.o
gcc %{?__global_ldflags} -fPIC -shared -Wl,-soname,%{soname} \
%{name}.o -o lib%{name}.so.0.1
%{name}.o -o %{soname}
ln -s %{soname} lib%{name}.so
# Build test against the library
g++ %{optflags} -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 \

Loading…
Cancel
Save