Link with $RPM_LD_FLAGS.
This commit is contained in:
parent
f5a1a48336
commit
c3a010e697
1 changed files with 8 additions and 4 deletions
12
bliss.spec
12
bliss.spec
|
|
@ -1,6 +1,6 @@
|
|||
Name: bliss
|
||||
Version: 0.72
|
||||
Release: 10%{?dist}
|
||||
Release: 11%{?dist}
|
||||
Summary: Compute automorphism groups and canonical labelings of graphs
|
||||
|
||||
License: GPLv3
|
||||
|
|
@ -52,14 +52,15 @@ library.
|
|||
# here instead. Also, avoid an unused direct dependency on libm.
|
||||
g++ $RPM_OPT_FLAGS -DBLISS_USE_GMP -fPIC -shared -o libbliss.so.%{version} \
|
||||
-Wl,-soname,libbliss.so.%{sover} defs.cc graph.cc partition.cc orbit.cc \
|
||||
uintseqhash.cc heap.cc timer.cc utils.cc bliss_C.cc -lgmp -Wl,--as-needed
|
||||
uintseqhash.cc heap.cc timer.cc utils.cc bliss_C.cc -Wl,--as-needed \
|
||||
$RPM_LD_FLAGS -lgmp
|
||||
ln -s libbliss.so.%{version} libbliss.so.%{sover}
|
||||
ln -s libbliss.so.%{sover} libbliss.so
|
||||
|
||||
# The Makefile doesn't know how to link the binary against a shared library.
|
||||
# Also, once again avoid an unused direct dependency on libm.
|
||||
g++ $RPM_OPT_FLAGS -DBLISS_USE_GMP -o bliss bliss.cc -L. -lbliss -lgmp \
|
||||
-Wl,--as-needed
|
||||
g++ $RPM_OPT_FLAGS -DBLISS_USE_GMP -o bliss bliss.cc -Wl,--as-needed \
|
||||
$RPM_LD_FLAGS -L. -lbliss -lgmp
|
||||
|
||||
# Build the documentation
|
||||
doxygen
|
||||
|
|
@ -101,6 +102,9 @@ cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1
|
|||
%{_libdir}/libbliss.so.*
|
||||
|
||||
%changelog
|
||||
* Fri Mar 6 2015 Jerry James <loganjerry@gmail.com> - 0.72-11
|
||||
- Link with RPM_LD_FLAGS
|
||||
|
||||
* Wed Feb 11 2015 Jerry James <loganjerry@gmail.com> - 0.72-10
|
||||
- Note bundled jquery
|
||||
- Use license macro
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue