Skip to content

Commit edef2b3

Browse files
irssi: fix build
1 parent 4ea4ab0 commit edef2b3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

projects/irssi/build.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash -eu
1+
#!/bin/bash -eux
22
# Copyright 2016 Google Inc.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -27,6 +27,11 @@ fuzz_targets=(
2727
if [ "$FUZZING_ENGINE" = honggfuzz ]; then
2828
export CC="$SRC"/"$FUZZING_ENGINE"/hfuzz_cc/hfuzz-clang
2929
export CXX="$SRC"/"$FUZZING_ENGINE"/hfuzz_cc/hfuzz-clang++
30+
# hfuzz compilers automatically link libhfuzz, so pass empty fuzzer-lib
31+
# to avoid double-linking
32+
FUZZER_LIB_FLAG=""
33+
else
34+
FUZZER_LIB_FLAG="-Dwith-fuzzer-lib=$LIB_FUZZING_ENGINE"
3035
fi
3136

3237
# cleanup
@@ -35,7 +40,7 @@ mkdir -p "$BUILD"
3540

3641
# Configure the project.
3742
meson "$BUILD" -Dstatic-dependency=yes -Dinstall-glib=force \
38-
-Dwith-fuzzer=yes -Dwith-fuzzer-lib=$LIB_FUZZING_ENGINE \
43+
-Dwith-fuzzer=yes $FUZZER_LIB_FLAG \
3944
-Dfuzzer-link-language=cpp \
4045
|| ( cat "$BUILD"/meson-logs/meson-log.txt && false )
4146

0 commit comments

Comments
 (0)