diff --git a/Meta/Lagom/BuildFuzzers.sh b/Meta/Lagom/BuildFuzzers.sh index 0f01928da4..965d81b7e0 100755 --- a/Meta/Lagom/BuildFuzzers.sh +++ b/Meta/Lagom/BuildFuzzers.sh @@ -47,7 +47,10 @@ unset CXXFLAGS export AFL_NOOPT=1 if [ "$#" -gt "0" ] && [ "--oss-fuzz" = "$1" ] ; then - CXXFLAGS="$CXXFLAGS -DOSS_FUZZ=ON" + # The oss-fuzz runner image (as of June 2024) has libstdc++ 9, which lacks the + # header. Use the more modern libc++ shipped with oss-fuzz's Clang. + # It's already set in CXXFLAGS_SAVE. + CXXFLAGS="$CXXFLAGS -DOSS_FUZZ=ON -stdlib=libc++" fi # FIXME: Replace these CMake invocations with a CMake superbuild?