]> The Tcpdump Group git mirrors - tcpslice/commitdiff
CI: Use a workaround for OpenIndiana Clang.
authorDenis Ovsienko <[email protected]>
Wed, 13 Mar 2024 23:32:26 +0000 (23:32 +0000)
committerDenis Ovsienko <[email protected]>
Wed, 13 Mar 2024 23:32:26 +0000 (23:32 +0000)
Same as in libpcap.

build.sh

index eb3046250eb67111f7b21c76c7debf4a5ac715b5..fed2c8bb3cba0bf1cf949f6fa4b23b5c75a3f182 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -27,6 +27,14 @@ run_after_echo "$MAKE_BIN" -s clean
 # some specific OS).
 
 [ "$TCPSLICE_TAINTED" != yes ] && CFLAGS=`cc_werr_cflags`
+
+case `cc_id`/`os_id` in
+clang-*/SunOS-5.11)
+    # Work around https://www.illumos.org/issues/16369
+    [ `uname -o` = illumos ] && grep -Fq OpenIndiana /etc/release && CFLAGS="-Wno-fuse-ld-path${CFLAGS:+ $CFLAGS}"
+    ;;
+esac
+
 run_after_echo "$MAKE_BIN" -s ${CFLAGS:+CFLAGS="$CFLAGS"}
 print_so_deps tcpslice
 run_after_echo ./tcpslice -h