fix(build): GCC15 segfault fallback, bin dir fix, check_nfqws --version

This commit is contained in:
Auto Fix
2026-05-11 08:22:56 +04:00
parent cdd49369a5
commit e47a7e2461
8 changed files with 26 additions and 9 deletions
+5 -3
View File
@@ -112,8 +112,9 @@ describe_strategy() {
esac
}
# Verify the binary actually runs (catches segfaults/missing deps)
check_nfqws() {
if [[ ! -x "$BIN_DIR/nfqws" ]]; then
if [[ ! -f "$BIN_DIR/nfqws" ]] || [[ ! -x "$BIN_DIR/nfqws" ]]; then
echo ""
print_red "ERROR: nfqws binary not found!"
echo ""
@@ -122,8 +123,9 @@ check_nfqws() {
echo ""
return 1
fi
# Verify the binary actually runs (catches segfaults/missing deps)
if ! "$BIN_DIR/nfqws" --help >/dev/null 2>&1; then
# Verify the binary actually runs (catches segfaults/missing deps).
# Use --version because --help exits with code 1 in zapret.
if ! "$BIN_DIR/nfqws" --version >/dev/null 2>&1; then
echo ""
print_red "ERROR: nfqws binary exists but does not run (segfault? missing deps?)"
echo ""