From 886b9b8d3f8f41960231bb9a2e5aab1cb0336ae3 Mon Sep 17 00:00:00 2001 From: Michal Vasko Date: Thu, 11 Apr 2024 15:15:00 +0200 Subject: [PATCH] libyang: simplify options and include dirs (#11799) Should also fix the build error. --- projects/libyang/build.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/projects/libyang/build.sh b/projects/libyang/build.sh index 2b85b7ff9..46e2c041a 100755 --- a/projects/libyang/build.sh +++ b/projects/libyang/build.sh @@ -18,15 +18,14 @@ cd libyang git checkout devel -sed -i 's/add_subdirectory/#add_subdirectory/g' ./tools/CMakeLists.txt mkdir build && cd build -cmake ../ -DBUILD_SHARED_LIBS=OFF +cmake -DBUILD_SHARED_LIBS=OFF -DENABLE_TOOLS=OFF .. make static_pcre=($(find /src/pcre2 -name "libpcre2-8.a")) for fuzzer in lyd_parse_mem_json lyd_parse_mem_xml lys_parse_mem; do - $CC $CFLAGS -c ../tests/fuzz/${fuzzer}.c -I../src -I../src/plugins_exts -I./src -I./compat + $CC $CFLAGS -c ../tests/fuzz/${fuzzer}.c -I./libyang -I./compat $CXX $CXXFLAGS $LIB_FUZZING_ENGINE ${fuzzer}.o -o $OUT/${fuzzer} \ ./libyang.a ${static_pcre} done