diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-04-13 05:42:42 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-04-13 05:42:42 +0100 |
commit | 37cf2a8dbadd546a550aac7c8079c3f77427cb63 (patch) | |
tree | 01b4d88cf5ffbb0cc059bd4e1cbca9d8352ee900 /media-libs/lcms/files | |
parent | 7bb99171a372e6cff495daf7dbef2e03d216be29 (diff) |
gentoo auto-resync : 13:04:2023 - 05:42:42
Diffstat (limited to 'media-libs/lcms/files')
-rw-r--r-- | media-libs/lcms/files/lcms-2.15-pthread-linking.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/media-libs/lcms/files/lcms-2.15-pthread-linking.patch b/media-libs/lcms/files/lcms-2.15-pthread-linking.patch new file mode 100644 index 000000000000..613d43415b3d --- /dev/null +++ b/media-libs/lcms/files/lcms-2.15-pthread-linking.patch @@ -0,0 +1,25 @@ +https://github.com/mm2/Little-CMS/commit/1cb1e12fc298b86168ff5606d4ae8d5adb478021 + +From 1cb1e12fc298b86168ff5606d4ae8d5adb478021 Mon Sep 17 00:00:00 2001 +From: Daniel Engberg <daniel.engberg.lists@pyret.net> +Date: Sun, 19 Mar 2023 13:19:14 +0100 +Subject: [PATCH] meson: Link pthread library to threaded plugin + +Fixes +``` +cc -o plugins/threaded/src/liblcms2_threaded.so plugins/threaded/src/liblcms2_threaded.so.p/threaded_core.c.o plugins/threaded/src/liblcms2_threaded.so.p/threaded_main.c.o plugins/threaded/src/liblcms2_threaded.so.p/threaded_scheduler.c.o plugins/threaded/src/liblcms2_threaded.so.p/threaded_split.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -shared -fPIC -Wl,--start-group -Wl,-soname,liblcms2_threaded.so -fstack-protector-strong -O2 -pipe -fstack-protector-strong -fno-strict-aliasing '-Wl,-rpath,$ORIGIN/../../../src' -Wl,-rpath-link,/usr/ports/graphics/lcms2/work/lcms2-2.15/_build/src src/liblcms2.so.2.0.15 -Wl,--end-group +ld: error: undefined symbol: pthread_create +``` +OS: FreeBSD 13.2-BETA1 (amd64) +--- a/plugins/threaded/src/meson.build ++++ b/plugins/threaded/src/meson.build +@@ -21,7 +21,7 @@ liblcms2_threaded = library( + 'lcms2_threaded', + liblcms2_threaded_sources, + include_directories: lcms2_threaded_incdir, +- dependencies: liblcms2_dep, ++ dependencies: [ liblcms2_dep, threads_dep ], + c_args: cargs, + install: true, + ) + |