Make quilt patch for pthread shared libs commit.
authorPeter Michael Green <plugwash@debian.org>
Thu, 10 Jan 2019 14:21:25 +0000 (14:21 +0000)
committerPeter Michael Green <plugwash@debian.org>
Thu, 10 Jan 2019 14:53:14 +0000 (14:53 +0000)
debian/patches/10-use-pthread-for-shared-libs.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/10-use-pthread-for-shared-libs.patch b/debian/patches/10-use-pthread-for-shared-libs.patch
new file mode 100644 (file)
index 0000000..2b5f608
--- /dev/null
@@ -0,0 +1,33 @@
+commit 437259e96369ceeca0770b6ce7aa0c025cb5c79b
+Author: Peter Michael Green <plugwash@debian.org>
+Date:   Thu Jan 10 14:17:59 2019 +0000
+
+    Use -pthread when linking shared libraries.
+
+diff --git a/Makefile b/Makefile
+index 9e43eab..0aa14fe 100644
+--- a/Makefile
++++ b/Makefile
+@@ -136,19 +136,19 @@ ifeq ($(DESTDIR),)
+ endif
+ $(LIB1):      $(OBJ1)
+-      $(SHLIB) -Wl,-soname,$(LIB1).$(SOVERSION) -o $(LIB1).$(SOVERSION) $(OBJ1)
++      $(SHLIB) -pthread -Wl,-soname,$(LIB1).$(SOVERSION) -o $(LIB1).$(SOVERSION) $(OBJ1)
+       ln -fs $(LIB1).$(SOVERSION) $(LIB1)
+       $(STRIPLIB) $(LIB1)
+       $(SIZE)     $(LIB1)
+ $(LIB2):      $(OBJ2)
+-      $(SHLIB) -Wl,-soname,$(LIB2).$(SOVERSION) -o $(LIB2).$(SOVERSION) $(OBJ2)
++      $(SHLIB) -pthread -Wl,-soname,$(LIB2).$(SOVERSION) -o $(LIB2).$(SOVERSION) $(OBJ2)
+       ln -fs $(LIB2).$(SOVERSION) $(LIB2)
+       $(STRIPLIB) $(LIB2)
+       $(SIZE)     $(LIB2)
+ $(LIB3):      $(OBJ3)
+-      $(SHLIB) -Wl,-soname,$(LIB3).$(SOVERSION) -o $(LIB3).$(SOVERSION) $(OBJ3)
++      $(SHLIB) -pthread -Wl,-soname,$(LIB3).$(SOVERSION) -o $(LIB3).$(SOVERSION) $(OBJ3)
+       ln -fs $(LIB3).$(SOVERSION) $(LIB3)
+       $(STRIPLIB) $(LIB3)
+       $(SIZE)     $(LIB3)
index 8ee80281449001eafe922cec3e7df9ff8aef3cdf..33c0f3d4015445641170d9ce491a0acad092fc8e 100644 (file)
@@ -6,3 +6,4 @@
 07-arm64-pi-detection.patch
 08-dont-install-libs-as-manpages.patch
 09-filelayout.patch
+10-use-pthread-for-shared-libs.patch