void-packages/srcpkgs/liquid-dsp/patches/define-soname.patch

42 lines
1.5 KiB
Diff

Description: Add versioned soname to library
Upstream has no versioned soname yet, so this patch adds a Debian
specific soname version until something is added upstream.
Author: Andreas Bombe <aeb@debian.org>
Last-Update: 2016-12-11
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: git/makefile.in
===================================================================
--- makefile.in 2017-10-28 20:23:47.395786766 +0200
+++ makefile.in 2017-10-28 20:23:47.391786768 +0200
@@ -1167,7 +1167,7 @@
$(CC) -dynamiclib -install_name $@ -o $@ $^ $(LDFLAGS) $(LIBS)
# linux, et al
-libliquid.so: libliquid.a
+$(SHARED_LIB): libliquid.a
$(CC) $(CFLAGS) $(LDFLAGS) -shared -Xlinker -soname=$@ -o $@ -Wl,-whole-archive $^ -Wl,-no-whole-archive $(LIBS)
all: libliquid.a $(SHARED_LIB)
@@ -1191,6 +1191,7 @@
mkdir -p $(DESTDIR)$(exec_prefix)$(libdir)
mkdir -p $(DESTDIR)$(prefix)/include/liquid
install -m 644 -p $(SHARED_LIB) libliquid.a $(DESTDIR)$(exec_prefix)$(libdir)
+ ln -s $(SHARED_LIB) $(DESTDIR)$(exec_prefix)$(libdir)/libliquid.so
install -m 644 -p $(addprefix include/,$(headers_install)) $(DESTDIR)$(prefix)/include/liquid
@echo ""
@echo "---------------------------------------------------------"
Index: git/configure.ac
===================================================================
--- configure.ac 2017-10-28 20:23:47.395786766 +0200
+++ configure.ac 2017-10-28 20:23:47.391786768 +0200
@@ -242,7 +242,7 @@
REBIND=""
;;
*)
- SH_LIB=libliquid.so
+ SH_LIB=libliquid.so.1
REBIND=ldconfig
;;
esac