]> git.ipfire.org Git - thirdparty/lxc.git/commit
ci: link lib[au]san with init.lxc.static statically
authorEvgeny Vereshchagin <evvers@ya.ru>
Mon, 12 Apr 2021 04:19:11 +0000 (04:19 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Mon, 12 Apr 2021 23:20:29 +0000 (23:20 +0000)
commit7b8b83572b23cd9bed40d5cabf17466c4f3f3fe2
tree9e1cd48ef86e0cdb7b9a748492d1ef8f95c19761
parent5a0720a91e2097bc7dd239347ec5e09f8cbfc862
ci: link lib[au]san with init.lxc.static statically

init.lxc.static is run in arbitrary containers where the libasan library lxc has been built with
isn't always installed. To make it work let's override GCC's default and link both libasan
and libubsan statically. It should help to fix issues like
```
++ lxc-execute -n c1 -- sudo -u ubuntu /nnptest
lxc-init: error while loading shared libraries: libasan.so.5: cannot open shared object file: No such file or directory
```

Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
.github/workflows/lxc-exercise