Skip to content

Commit 886b9b8

Browse files
authored
libyang: simplify options and include dirs (#11799)
Should also fix the build error.
1 parent 61608e0 commit 886b9b8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

projects/libyang/build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,14 @@
1818
cd libyang
1919
git checkout devel
2020

21-
sed -i 's/add_subdirectory/#add_subdirectory/g' ./tools/CMakeLists.txt
2221
mkdir build && cd build
23-
cmake ../ -DBUILD_SHARED_LIBS=OFF
22+
cmake -DBUILD_SHARED_LIBS=OFF -DENABLE_TOOLS=OFF ..
2423
make
2524

2625
static_pcre=($(find /src/pcre2 -name "libpcre2-8.a"))
2726

2827
for fuzzer in lyd_parse_mem_json lyd_parse_mem_xml lys_parse_mem; do
29-
$CC $CFLAGS -c ../tests/fuzz/${fuzzer}.c -I../src -I../src/plugins_exts -I./src -I./compat
28+
$CC $CFLAGS -c ../tests/fuzz/${fuzzer}.c -I./libyang -I./compat
3029
$CXX $CXXFLAGS $LIB_FUZZING_ENGINE ${fuzzer}.o -o $OUT/${fuzzer} \
3130
./libyang.a ${static_pcre}
3231
done

0 commit comments

Comments
 (0)