diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-01-31 18:57:01 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-01-31 18:57:01 +0000 |
commit | 69051588e2f955485fe5d45d45e616bc60a2de57 (patch) | |
tree | ef8699cca7ce3773b1de747b167ceeacdc60cb92 /sys-apps/usbguard/files | |
parent | d7ed2b01311f15ba54fe8ea872aab7d59ab2b193 (diff) |
gentoo resync : 31.01.2021
Diffstat (limited to 'sys-apps/usbguard/files')
-rw-r--r-- | sys-apps/usbguard/files/usbguard-1.0.0-pthreads-link.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sys-apps/usbguard/files/usbguard-1.0.0-pthreads-link.patch b/sys-apps/usbguard/files/usbguard-1.0.0-pthreads-link.patch new file mode 100644 index 000000000000..7edeb86b60bf --- /dev/null +++ b/sys-apps/usbguard/files/usbguard-1.0.0-pthreads-link.patch @@ -0,0 +1,36 @@ +From 9249ff391ee0765ac5e8d4e113e28b8a908c136f Mon Sep 17 00:00:00 2001 +From: Dennis Schridde <devurandom@gmx.net> +Date: Sat, 16 Jan 2021 10:40:26 +0100 +Subject: [PATCH] Link against libpthread + +`CFLAGS` is needed in addition to `LIBS`, because on some systems it +contains `-pthread` and `LIBS` is empty. + +Closes: https://github.com/USBGuard/usbguard/issues/432 +--- + Makefile.am | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/Makefile.am b/Makefile.am +index 402854fd..34a2e960 100644 +--- a/Makefile.am ++++ b/Makefile.am +@@ -167,6 +167,7 @@ libusbguard_la_CPPFLAGS=\ + -I$(top_srcdir)/src/Library/public \ + -I$(top_builddir)/src/Library/IPC \ + ${BOOST_CPPFLAGS} \ ++ ${PTHREAD_CPPFLAGS} \ + @qb_CFLAGS@ \ + @protobuf_CFLAGS@ \ + @crypto_CFLAGS@ \ +@@ -185,7 +186,9 @@ libusbguard_la_LIBADD=\ + @pegtl_LIBS@ \ + @atomic_LIBS@ \ + @umockdev_LIBS@ \ +- ${BOOST_IOSTREAMS_LIB} ++ ${BOOST_IOSTREAMS_LIB} \ ++ ${PTHREAD_CFLAGS} \ ++ ${PTHREAD_LIBS} + + EXTRA_DIST+=\ + src/Library/IPC/Devices.proto \ |