1
#! /bin/sh /usr/share/dpatch/dpatch-run
2
## 08-LDL_Lib_Makefile.dpatch by Daniel Rus Morales <danirus@tol-project.org>
4
## All lines beginning with `## DP:' are a description of the patch.
5
## DP: Build shared version of LDL library.
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
13
C = $(CC) $(CFLAGS) $(I)
16
+all: libldl.a libldl.so.3.1.0
18
#-------------------------------------------------------------------------------
21
$(AR) libldl.a ldl.o ldll.o
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 $@