]> 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)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 21 Apr 2021 08:04:59 +0000 (10:04 +0200)
commit33132141d3ea9fccabd11088129062bf4514c53c
tree684a7caefa2291469b3071bbea2ea3e9e7a9e310
parentb347825b839a96c12b0aea16fa78e24a18b01515
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