Commit 4514e02
marcel
Fix CMake linking order for dlopen/dlsym symbols
Move CMAKE_DL_LIBS (-ldl) after the static libraries (sems_core,
sems_sip) in the link command. With --whole-archive, the GNU linker
processes libraries in order and needs to see the libraries that
define symbols after the objects that reference them.
This fixes the Debian 11 build failure where linking failed with
undefined references to dlopen, dlclose, dlsym, and dlerror from
libsems_core.a.1 parent fc43a58 commit 4514e02
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | 37 | | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments