]> git.pld-linux.org Git - packages/cdflib.git/blame - cdflib-soname.patch
- added no-common patch (fixes build with -fno-common, gcc 10 default)
[packages/cdflib.git] / cdflib-soname.patch
CommitLineData
d11fe43d
JB
1--- cdf36_4-dist/src/lib/Makefile.orig 2017-01-04 21:58:09.000000000 +0100
2+++ cdf36_4-dist/src/lib/Makefile 2018-05-16 19:29:54.154230934 +0200
3@@ -125,8 +125,8 @@
4 libcdf.dll \
5 libcdf.sl: $(OBJs)
6 @if [ -f $@ ] ; then rm $@ ; else $(NULL) ; fi
7- @echo $(LD) $(LDFLAGS) -o $@ $(OBJs) $(SYSLIBS)
8- $(LD) $(LDFLAGS) -o $@ $(OBJs) $(SYSLIBS)
9+ @echo $(LD) $(LDFLAGS) -o $@ $(OBJs) $(SYSLIBS) -Wl,-soname,libcdf.so.3
10+ $(LD) $(LDFLAGS) -o $@ $(OBJs) $(SYSLIBS) -Wl,-soname,libcdf.so.3
11 @if [ $(MACVERSION) -gt 0 ]; then \
12 rm -f $(MACLIB)/$@; \
13 cp $@ $(MACLIB)/libcdf.$(VERSION).dylib; \
14--- cdf36_4-dist/Makefile.orig 2018-05-16 19:31:40.914229713 +0200
15+++ cdf36_4-dist/Makefile 2018-05-16 19:31:55.137562887 +0200
16@@ -994,9 +994,9 @@
17
18 copy.lib.so:
19 @echo cp $(LIBsrcDIR)/libcdf.so $(INSTALLDIR)/lib
20- cp $(LIBsrcDIR)/libcdf.so $(INSTALLDIR)/lib/libcdf.$(VERSION).so
21+ cp $(LIBsrcDIR)/libcdf.so $(INSTALLDIR)/lib/libcdf.so.$(VERSION)
22 rm -f $(INSTALLDIR)/lib/libcdf.so
23- cd $(INSTALLDIR)/lib && ln -s libcdf.$(VERSION).so libcdf.so
24+ cd $(INSTALLDIR)/lib && ln -s libcdf.so.$(VERSION) libcdf.so.3 && ln -s libcdf.so.$(VERSION) libcdf.so
25
26 copy.lib.sl:
27 @echo cp $(LIBsrcDIR)/libcdf.sl $(INSTALLDIR)/lib
This page took 0.049944 seconds and 4 git commands to generate.