[bliss] Link with $RPM_LD_FLAGS.
Jerry James
jjames at fedoraproject.org
Fri Mar 6 21:34:33 UTC 2015
commit c3a010e697dba2c187908d815cfc3decf430c6cc
Author: Jerry James <loganjerry at gmail.com>
Date: Fri Mar 6 14:33:19 2015 -0700
Link with $RPM_LD_FLAGS.
bliss.spec | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/bliss.spec b/bliss.spec
index d7ba19f..9017049 100644
--- a/bliss.spec
+++ b/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 at gmail.com> - 0.72-11
+- Link with RPM_LD_FLAGS
+
* Wed Feb 11 2015 Jerry James <loganjerry at gmail.com> - 0.72-10
- Note bundled jquery
- Use license macro
More information about the scm-commits
mailing list