[frobby] 01/01: Properly link library against gmp.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sat Mar 21 13:40:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository frobby.
commit b856780afba7c8ab22ff3a6b0dbdf02cec67a187
Author: Doug Torrance <dtorrance at monmouthcollege.edu>
Date: Sat Mar 21 08:33:33 2015 -0500
Properly link library against gmp.
---
debian/patches/link_gmp.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 19 insertions(+)
diff --git a/debian/patches/link_gmp.patch b/debian/patches/link_gmp.patch
new file mode 100644
index 0000000..19e2b52
--- /dev/null
+++ b/debian/patches/link_gmp.patch
@@ -0,0 +1,18 @@
+Description: Link library against gmp.
+ The libraries should appear after any object files that use them. However,
+ "-lgmp -lgmpxx" was part of the variable ldflags, which appeared before the
+ object files.
+Author: Doug Torrance <dtorrance at monmouthcollege.edu>
+Last-Update: 2015-03-21
+
+--- a/Makefile
++++ b/Makefile
+@@ -214,7 +214,7 @@
+ rm -f bin/$(library)
+ ifeq ($(MODE), shared)
+ $(CXX) -shared -o bin/$(library) $(ldflags) \
+- $(patsubst $(outdir)main.o,,$(objs))
++ $(patsubst $(outdir)main.o,,$(objs)) -lgmp -lgmpxx
+ else
+ ar crs bin/$(library) $(patsubst $(outdir)main.o,,$(objs))
+ endif
diff --git a/debian/patches/series b/debian/patches/series
index e725dca..123ac86 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
add_unistd.h.patch
fix_conversion_error.patch
fix_install.patch
+link_gmp.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/frobby.git
More information about the debian-science-commits
mailing list