test: threads: Fix link failure due to missing dependency
Commit036d26d667("test: threads: Test thread cleanup upon abnormal termination") added calls to functions provided by the pthread library in the threads test, but didn't add the corresponding dependency. This caused a link breakage on some platforms: /usr/bin/ld: test/threads.p/threads.cpp.o: undefined reference to symbol 'pthread_cancel@@GLIBC_2.4' /usr/bin/ld: /lib/arm-linux-gnueabihf/libpthread.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Fix it by adding the missing dependency. Fixes:036d26d667("test: threads: Test thread cleanup upon abnormal termination") Reported-by: Naushir Patuck <naush@raspberrypi.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Tested-by: Naushir Patuck <naush@raspberrypi.com> Acked-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
@@ -38,9 +38,9 @@ if libunwind.found()
|
||||
endif
|
||||
|
||||
libcamera_base_deps = [
|
||||
dependency('threads'),
|
||||
libatomic,
|
||||
libdw,
|
||||
libthreads,
|
||||
libunwind,
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user