[Pkg-scicomp-devel] suitesparse-metis/trunk/debian/patches

Daniel Rus danirus at tol-project.org
Fri Jul 27 10:24:49 UTC 2007


SVN commit 1737 by danirus-guest:

Object files for LDL shared library must be compiled with -fPIC.

 M  +9 -11     suitesparse-metis/trunk/debian/patches/08-LDL_Lib_Makefile.dpatch  


--- suitesparse-metis/trunk/debian/patches/08-LDL_Lib_Makefile.dpatch #1736:1737
@@ -1,13 +1,12 @@
 #! /bin/sh /usr/share/dpatch/dpatch-run
-## 08-LDL_Lib_Makefile.dpatch by  <danirus at tol-project.org>
+## 08-LDL_Lib_Makefile.dpatch by Daniel Rus Morales <danirus at tol-project.org>
 ##
-## All lines beginning with `## DP:' are a description of the patch.
 ## DP: New content to build the LDL shared library
 
 @DPATCH@
-diff -u suitesparse-3.0.0.orig/LDL/Lib/Makefile suitesparse-3.0.0/LDL/Lib/Makefile
---- suitesparse-3.0.0.orig/LDL/Lib/Makefile	2007-05-05 19:31:44.000000000 +0200
-+++ suitesparse-3.0.0/LDL/Lib/Makefile	2007-06-10 13:13:31.000000000 +0200
+diff -u upstrm/LDL/Lib/Makefile debsrc/LDL/Lib/Makefile
+--- upstrm/LDL/Lib/Makefile	2007-05-05 19:31:44.000000000 +0200
++++ debsrc/LDL/Lib/Makefile	2007-07-27 12:09:15.000000000 +0200
 @@ -10,7 +10,7 @@
  
  C = $(CC) $(CFLAGS) $(I)
@@ -17,13 +16,13 @@
  
  #-------------------------------------------------------------------------------
  # the ldl library:
-@@ -22,11 +22,22 @@
+@@ -22,6 +22,13 @@
  	$(AR) libldl.a ldl.o ldll.o
  	- $(RANLIB) libldl.a
  
 +libldl.so.1.2: ../Source/ldl.c ../Include/ldl.h
-+	$(C) -c ../Source/ldl.c -o ldl.oo
-+	$(C) -DLDL_LONG -c ../Source/ldl.c -o ldll.oo
++	$(C) -fPIC -c ../Source/ldl.c -o ldl.oo
++	$(C) -fPIC -DLDL_LONG -c ../Source/ldl.c -o ldll.oo
 +	$(C) -shared *.oo -lm -Wl,-soname -Wl,libldl.so.1 -o $@
 +	ln -s $@ libldl.so.1
 +	ln -s $@ libldl.so
@@ -31,12 +30,11 @@
  distclean: purge
  
  purge: clean
- 	- $(RM) libldl.a
+@@ -29,4 +36,6 @@
  
-+
  clean:
  	- $(RM) $(CLEAN)
+-
 +	-$(RM) *.oo
 +	-$(RM) *.a
 +	-$(RM) *.so*
- 



More information about the Pkg-scicomp-devel mailing list