Commit e0a11d1
committed
clang: Add -lpthread and -ldl along with -lunwind for static linking
When doing static liking with --unwindlib=libunwind -static we encounter
undefined symbols
libunwind/src/RWMutex.hpp:68: undefined reference to `pthread_rwlock_wrlock'
and
libunwind/src/AddressSpace.hpp:597: undefined reference to `dladdr'
therefore we need to link in libpthread and libdl to fill these symbols
Upstream-Status: Pending
Signed-off-by: Khem Raj <[email protected]>1 parent 10ea590 commit e0a11d1
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2418 | 2418 | | |
2419 | 2419 | | |
2420 | 2420 | | |
| 2421 | + | |
| 2422 | + | |
2421 | 2423 | | |
2422 | 2424 | | |
2423 | 2425 | | |
| |||
0 commit comments