~ubuntu-branches/ubuntu/hardy/suitesparse/hardy

« back to all changes in this revision

Viewing changes to debian/patches/08-LDL_Lib_Makefile.dpatch

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere, Rafael Laboissiere, Ondrej Certik
  • Date: 2008-02-21 14:46:50 UTC
  • mfrom: (1.1.2 upstream) (5.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20080221144650-tgeppgj0t7s759i8
Tags: 3.1.0-3
[ Rafael Laboissiere ]
* Upload to unstable

[ Ondrej Certik ]
* XS-DM-Upload-Allowed: yes field added
* Ondrej Certik added to uploaders

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh /usr/share/dpatch/dpatch-run
 
2
## 08-LDL_Lib_Makefile.dpatch by Daniel Rus Morales <danirus@tol-project.org>
 
3
##
 
4
## All lines beginning with `## DP:' are a description of the patch.
 
5
## DP: Build shared version of LDL library.
 
6
 
 
7
@DPATCH@
 
8
diff -u upstrm/LDL/Lib/Makefile debsrc/LDL/Lib/Makefile
 
9
--- upstrm/LDL/Lib/Makefile     2007-05-05 19:31:44.000000000 +0200
 
10
+++ debsrc/LDL/Lib/Makefile     2007-12-15 19:06:46.000000000 +0100
 
11
@@ -10,7 +10,7 @@
 
12
 
 
13
 C = $(CC) $(CFLAGS) $(I)
 
14
 
 
15
-all: libldl.a
 
16
+all: libldl.a libldl.so.3.1.0
 
17
 
 
18
 #-------------------------------------------------------------------------------
 
19
 # the ldl library:
 
20
@@ -22,6 +22,12 @@
 
21
        $(AR) libldl.a ldl.o ldll.o
 
22
        - $(RANLIB) libldl.a
 
23
 
 
24
+libldl.so.3.1.0: ../Source/ldl.c ../Include/ldl.h
 
25
+       $(C) -fPIC -c ../Source/ldl.c -o ldl.oo
 
26
+       $(C) -fPIC -DLDL_LONG -c ../Source/ldl.c -o ldll.oo
 
27
+       $(C) -fPIC -shared *.oo -lm -Wl,-soname -Wl,$@ -o $@
 
28
+       ln -s $@ libldl.so
 
29
+
 
30
 distclean: purge
 
31
 
 
32
 purge: clean
 
33
@@ -29,4 +36,6 @@
 
34
 
 
35
 clean:
 
36
        - $(RM) $(CLEAN)
 
37
-
 
38
+       -$(RM) *.oo
 
39
+       -$(RM) *.a
 
40
+       -$(RM) *.so*