[SCM] libzn-poly: library for polynomial arithmetic in Z/nZ[x] branch, master, updated. upstream/0.9-15-g7a2be08

Tobias Hansen tobias.han at gmx.de
Thu Dec 20 22:28:00 UTC 2012


The following commit has been merged in the master branch:
commit 7a2be0864ed8b6b18bb8198c1ff98c6c3680e4f1
Author: Tobias Hansen <tobias.han at gmx.de>
Date:   Thu Dec 20 23:27:34 2012 +0100

    Pass flags properly.

diff --git a/debian/patches/zn_poly_soname.patch b/debian/patches/zn_poly_soname.patch
index 9134ab1..0651b55 100644
--- a/debian/patches/zn_poly_soname.patch
+++ b/debian/patches/zn_poly_soname.patch
@@ -20,7 +20,7 @@
  
  print
  print
-@@ -199,8 +203,13 @@
+@@ -199,11 +203,16 @@
  print "\t$(CC) -m64 -single_module -fPIC -dynamiclib -o libzn_poly.dylib " \
        "$(LIBOBJS) $(LIBS)"
  print
@@ -29,13 +29,17 @@
 +print "libzn_poly.so: "
 +print "\trm -f *.o"
 +print "\tmake shobjs"
-+print "\t$(CC) -fPIC -shared -Wl,-soname,lib`cat DIRNAME`.so -o lib`cat DIRNAME`.so $(LIBOBJS) $(LIBS)"
++print "\t$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname,lib`cat DIRNAME`.so -o lib`cat DIRNAME`.so $(LIBOBJS) $(LIBS)"
 +print "\tln -s lib`cat DIRNAME`.so libzn_poly.so"
 +print
 +print "shobjs: $(LIBOBJS)"
  print
  print "libzn_poly-%s.so: $(LIBOBJS)" % version
- print "\t$(CC) -shared -Wl,-soname,libzn_poly-%s.so " \
+-print "\t$(CC) -shared -Wl,-soname,libzn_poly-%s.so " \
++print "\t$(CC) $(CFLAGS) $(LDFLAGS) -shared -Wl,-soname,libzn_poly-%s.so " \
+       "-o libzn_poly-%s.so $(LIBOBJS) $(LIBS)" % (version, version)
+ print "\t ln -sf libzn_poly-%s.so libzn_poly.so" % version
+ 
 --- /dev/null
 +++ b/DIRNAME
 @@ -0,0 +1 @@
diff --git a/debian/rules b/debian/rules
index 3d7a3b8..142d750 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,7 @@ override_dh_auto_clean:
 
 override_dh_auto_configure:
 	./configure --gmp-prefix="/usr" --ntl-prefix="/usr" \
-            --prefix="$(CURDIR)/debian/tmp/usr" --cflags="$(CFLAGS) -fPIC"
+            --prefix="$(CURDIR)/debian/tmp/usr" --cflags="$(CFLAGS) $(CPPFLAGS) -fPIC" --ldflags="$(LDFLAGS)"
 
 override_dh_auto_build:
 	$(MAKE)

-- 
libzn-poly: library for polynomial arithmetic in Z/nZ[x]



More information about the debian-science-commits mailing list