]> git.pld-linux.org Git - packages/LDL.git/blob - LDL-shared.patch
f04e4c917386106f9b1324281234f494008e4a66
[packages/LDL.git] / LDL-shared.patch
1 --- LDL/Lib/Makefile.orig       2012-01-06 13:09:34.783942021 +0100
2 +++ LDL/Lib/Makefile    2012-01-07 09:54:36.789776653 +0100
3 @@ -10,17 +10,20 @@
4  
5  C = $(CC) $(CF) $(I)
6  
7 -all: libldl.a
8 +all: libldl.la
9  
10  #-------------------------------------------------------------------------------
11  # the ldl library:
12  #-------------------------------------------------------------------------------
13  
14 -libldl.a: ../Source/ldl.c ../Include/ldl.h
15 -       $(C) -c ../Source/ldl.c -o ldl.o
16 -       $(C) -DLDL_LONG -c ../Source/ldl.c -o ldll.o
17 -       $(ARCHIVE)  libldl.a ldl.o ldll.o
18 -       - $(RANLIB) libldl.a
19 +libldl.la: ../Source/ldl.c ../Include/ldl.h
20 +       libtool --tag=CC --mode=compile $(C) -c ../Source/ldl.c -o ldl.lo
21 +       libtool --tag=CC --mode=compile $(C) -DLDL_LONG -c ../Source/ldl.c -o ldll.lo
22 +       libtool --tag=CC --mode=link $(CC) $(LDFLAGS) $(CFLAGS) -o libldl.la -rpath $(libdir) ldl.lo ldll.lo
23 +
24 +install: libldl.la
25 +       install -d $(DESTDIR)$(libdir)
26 +       libtool --mode=install install libldl.la $(DESTDIR)$(libdir)/libldl.la
27  
28  distclean: purge
29  
30 --- LDL/Demo/Makefile.orig      2012-01-07 09:58:11.419783839 +0100
31 +++ LDL/Demo/Makefile   2012-01-07 11:03:47.723248976 +0100
32 @@ -20,34 +20,34 @@
33  #-------------------------------------------------------------------------------
34  
35  ldlmain:  ldlmain.c library
36 -       $(C) ldlmain.c ../Lib/libldl.a -o ldlmain -lm
37 +       libtool --tag=CC --mode=link $(C) $(LDFLAGS) ldlmain.c ../Lib/libldl.la -o ldlmain -lm
38         - ./ldlmain > my_ldlmain.out
39         - diff ldlmain.out my_ldlmain.out
40  
41  ldllmain:  ldlmain.c library
42 -       $(C) -DLDL_LONG ldlmain.c ../Lib/libldl.a -o ldllmain -lm
43 +       libtool --tag=CC --mode=link $(C) $(LDFLAGS) -DLDL_LONG ldlmain.c ../Lib/libldl.la -o ldllmain -lm
44         - ./ldllmain > my_ldllmain.out
45         - diff ldlmain.out my_ldllmain.out
46  
47  ldlsimple:  ldlsimple.c library
48 -       $(C) ldlsimple.c ../Lib/libldl.a -o ldlsimple -lm
49 +       libtool --tag=CC --mode=link $(C) $(LDFLAGS) ldlsimple.c ../Lib/libldl.la -o ldlsimple -lm
50         - ./ldlsimple > my_ldlsimple.out
51         - diff ldlsimple.out my_ldlsimple.out
52  
53  ldllsimple:  ldlsimple.c library
54 -       $(C) $(I) -DLDL_LONG ldlsimple.c ../Lib/libldl.a -o ldllsimple -lm
55 +       libtool --tag=CC --mode=link $(C) $(LDFLAGS) $(I) -DLDL_LONG ldlsimple.c ../Lib/libldl.la -o ldllsimple -lm
56         - ./ldllsimple > my_ldllsimple.out
57         - diff ldlsimple.out my_ldllsimple.out
58  
59  ldlamd:  ldlmain.c library
60 -       - $(C) -I../../AMD/Include -DUSE_AMD \
61 -               ldlmain.c ../../AMD/Lib/libamd.a ../Lib/libldl.a -o ldlamd -lm
62 +       - libtool --tag=CC --mode=link $(C) $(LDFLAGS) -DUSE_AMD \
63 +               ldlmain.c -lamd ../Lib/libldl.la -o ldlamd -lm
64         - ./ldlamd > my_ldlamd.out
65         - diff ldlamd.out my_ldlamd.out
66  
67  ldllamd:  ldlmain.c library
68 -       - $(C) -DLDL_LONG $(I) -I../../AMD/Include -DUSE_AMD \
69 -               ldlmain.c ../../AMD/Lib/libamd.a ../Lib/libldl.a -o ldllamd -lm
70 +       - libtool --tag=CC --mode=link $(C) $(LDFLAGS) -DLDL_LONG $(I) -DUSE_AMD \
71 +               ldlmain.c -lamd ../Lib/libldl.la -o ldllamd -lm
72         - ./ldllamd > my_ldllamd.out
73         - diff ldllamd.out my_ldllamd.out
74  
This page took 0.06336 seconds and 3 git commands to generate.