diff options
author | Daniel Engberg <daniel.engberg.lists@pyret.net> | 2023-03-19 13:19:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-19 13:19:14 +0100 |
commit | 1cb1e12fc298b86168ff5606d4ae8d5adb478021 (patch) | |
tree | a610d6b3908df930a074f63c2a910537fa8be052 | |
parent | 2a751a618eaa3ff3b181c67755120fa5142a2630 (diff) | |
download | lcms2-1cb1e12fc298b86168ff5606d4ae8d5adb478021.tar.gz |
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)
-rw-r--r-- | plugins/threaded/src/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/threaded/src/meson.build b/plugins/threaded/src/meson.build index 75b2796..ef97055 100644 --- 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, ) |