diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-21 20:56:20 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-21 20:56:20 +0000 |
commit | 868522aa377a4519adb0b9f402586ab7a41b86ba (patch) | |
tree | 44e805e154a3ace9bd8dbac73843e80d296b7814 /debian/patches/declare-soname.patch | |
parent | Adding upstream version 5.28.2+dfsg1+~cs23.11.12.3. (diff) | |
download | node-undici-debian.tar.xz node-undici-debian.zip |
Adding debian version 5.28.2+dfsg1+~cs23.11.12.3-6.debian/5.28.2+dfsg1+_cs23.11.12.3-6debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/declare-soname.patch')
-rw-r--r-- | debian/patches/declare-soname.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/debian/patches/declare-soname.patch b/debian/patches/declare-soname.patch new file mode 100644 index 0000000..1221d54 --- /dev/null +++ b/debian/patches/declare-soname.patch @@ -0,0 +1,34 @@ +Description: declare SONAME +Author: Yadd <yadd@debian.org> +Forwarded: not-needed +Last-Update: 2024-01-18 + +--- a/llhttp/Makefile ++++ b/llhttp/Makefile +@@ -1,6 +1,7 @@ + CLANG ?= clang + CFLAGS ?= + OS ?= ++SONAME ?= + + CFLAGS += -Os -g3 -Wall -Wextra -Wno-unused-parameter + ifneq ($(OS),Windows_NT) +@@ -23,7 +24,7 @@ + + build/libllhttp.so: build/c/llhttp.o build/native/api.o \ + build/native/http.o +- $(CLANG) -shared $^ -o $@ ++ $(CLANG) -shared $^ -Wl,-soname,$(SONAME) -o $@ + + build/libllhttp.a: build/c/llhttp.o build/native/api.o \ + build/native/http.o +@@ -88,6 +89,8 @@ + $(INSTALL) -d $(DESTDIR)$(LIBDIR) + $(INSTALL) -C build/llhttp.h $(DESTDIR)$(INCLUDEDIR)/llhttp.h + $(INSTALL) -C build/libllhttp.a $(DESTDIR)$(LIBDIR)/libllhttp.a +- $(INSTALL) build/libllhttp.so $(DESTDIR)$(LIBDIR)/libllhttp.so ++ $(INSTALL) build/libllhttp.so $(DESTDIR)$(LIBDIR)/$(SONAME) ++ ln -s $(SONAME) $(DESTDIR)$(LIBDIR)/$(SONAMEALIAS) ++ ln -s $(SONAME) $(DESTDIR)$(LIBDIR)/libllhttp.so + + .PHONY: all generate clean release postversion github-release |