Skip to content

Commit

Permalink
oss-fuzz.sh: get rid of the sed "no-undefined" kludge
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
  • Loading branch information
evverx authored and Christian Brauner committed Apr 2, 2021
1 parent b2378a5 commit fe06914
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/tests/oss-fuzz.sh
Expand Up @@ -24,10 +24,6 @@ mkdir -p $OUT

export LIB_FUZZING_ENGINE=${LIB_FUZZING_ENGINE:--fsanitize=fuzzer}

# -fsanitize=... isn't compatible with -Wl,-no-undefined
# https://github.com/google/sanitizers/issues/380
sed -i 's/-Wl,-no-undefined *\\/\\/' src/lxc/Makefile.am

# AFL++ and hoggfuzz are both incompatible with lto=thin apparently
sed -i '/-flto=thin/d' configure.ac

Expand All @@ -42,7 +38,8 @@ sed -i 's/^AC_CHECK_LIB(util/#/' configure.ac
--disable-openssl \
--disable-selinux \
--disable-seccomp \
--disable-capabilities
--disable-capabilities \
--disable-no-undefined

make -j$(nproc)

Expand Down

0 comments on commit fe06914

Please sign in to comment.