Repository navigation
Commit b77e634
committed
AODNative: link Threads::Threads publicly
Decoder.cxx and test_ReadPlan.cxx use std::thread, but neither the
library nor its test executable linked the threads library. With
glibc < 2.34 (e.g. EL8/slc8) pthread_* live in libpthread, so linking
fails with -Wl,--no-undefined:
libO2AODNative.so: undefined reference to `pthread_create'
o2-test-framework-aod-native: undefined reference to symbol
'pthread_join@@GLIBC_2.2.5' / DSO missing from command line
Newer glibc merges libpthread into libc, which hides the problem there.
Make Threads::Threads a public dependency so all consumers get it.1 parent 86084e0 commit b77e634
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments