]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
ci: get rid of the -static-libasan stopgap
authorEvgeny Vereshchagin <evvers@ya.ru>
Tue, 13 Apr 2021 23:33:44 +0000 (23:33 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Wed, 14 Apr 2021 00:47:45 +0000 (00:47 +0000)
Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
.github/workflows/sanitizers.sh

index 9bd63fc61e9726e5cc14a98e7dd29085efa2cc22..311b596c0beda0f9fd58e97fda928e7d4b36e86b 100755 (executable)
@@ -20,16 +20,6 @@ apt-get install --yes --no-install-recommends \
     python3-setuptools rsync squashfs-tools uidmap unzip uuid-runtime \
     wget xz-utils
 
-# 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
-if [[ "$CC" == "gcc" ]]; then
-    sed -i '/init_lxc_static_LDFLAGS/s/$/ -static-libasan -static-libubsan/' src/lxc/Makefile.am
-fi
-
 ./autogen.sh
 CFLAGS="-Wall -Werror" ./configure --enable-sanitizers --enable-tests --prefix=/usr/ --sysconfdir=/etc/ --localstatedir=/var/ --disable-no-undefined
 make