]> git.pld-linux.org Git - packages/OpenIPMI.git/blob - OpenIPMI-lt.patch
- libtool 2.2 compatibility
[packages/OpenIPMI.git] / OpenIPMI-lt.patch
1 --- OpenIPMI-2.0.14/swig/perl/Makefile.am.orig  2007-10-02 16:34:34.000000000 +0200
2 +++ OpenIPMI-2.0.14/swig/perl/Makefile.am       2008-07-10 07:29:13.967027928 +0200
3 @@ -16,19 +16,19 @@
4  all: OpenIPMI.so
5  
6  OpenIPMI_SRC = OpenIPMI_wrap.c OpenIPMI_perl.c
7 -OpenIPMI_OBJ = OpenIPMI_wrap.o OpenIPMI_perl.o
8 +OpenIPMI_OBJ = OpenIPMI_wrap.lo OpenIPMI_perl.lo
9  
10  OpenIPMI.so: $(OpenIPMI_OBJ)
11 -       $(LIBTOOL) --mode=link $(CC) -shared -o $@ $^ $(OPENIPMI_SWIG_LIBS)
12 -       rm OpenIPMI.so
13 +       $(LIBTOOL) --mode=link $(CC) -shared -module -avoid-version -o $(@:.so=.la) $^ $(OPENIPMI_SWIG_LIBS) -rpath $(PERL_INSTALL_DIR)/auto/OpenIPMI
14 +       rm -f OpenIPMI.so
15         mv .libs/OpenIPMI.so .
16         rm -rf .libs
17  
18 -OpenIPMI_wrap.o: OpenIPMI_wrap.c OpenIPMI.h
19 -       $(COMPILE) -c $<
20 +OpenIPMI_wrap.lo: OpenIPMI_wrap.c OpenIPMI.h
21 +       $(LIBTOOL) --mode=compile $(COMPILE) -c $<
22  
23 -OpenIPMI_perl.o: OpenIPMI_perl.c OpenIPMI.h
24 -       $(COMPILE) -c $<
25 +OpenIPMI_perl.lo: OpenIPMI_perl.c OpenIPMI.h
26 +       $(LIBTOOL) --mode=compile $(COMPILE) -c $<
27  
28  OpenIPMI_wrap.c OpenIPMI.pm: $(top_srcdir)/swig/OpenIPMI.i OpenIPMI_lang.i
29         $(SWIG) $(DEFS) -perl5 -o $@ -I$(top_srcdir)/swig/perl $<
This page took 0.033807 seconds and 3 git commands to generate.