fix(install_nfqws): preserve -std=gnu99 when stripping -s flag
sed pattern s/-s //g broke -std=gnu99 into td=gnu99. Use word-boundary regex to only remove the standalone strip flag.
This commit is contained in:
+1
-1
@@ -116,7 +116,7 @@ fi
|
|||||||
# Verify the binary actually runs (catch segfaults early)
|
# Verify the binary actually runs (catch segfaults early)
|
||||||
if ! "$BUILD_DIR/zapret/nfq/nfqws" --help >/dev/null 2>&1; then
|
if ! "$BUILD_DIR/zapret/nfq/nfqws" --help >/dev/null 2>&1; then
|
||||||
echo "[!] nfqws segfaults with current flags. Rebuilding without strip..."
|
echo "[!] nfqws segfaults with current flags. Rebuilding without strip..."
|
||||||
sed -i 's/-s //g; s/ -s//g' nfq/Makefile 2>/dev/null || true
|
sed -E -i 's/(^| )-s($| )/\1\2/g' nfq/Makefile 2>/dev/null || true
|
||||||
make -C nfq clean && make -C nfq
|
make -C nfq clean && make -C nfq
|
||||||
if [ ! -f "$BUILD_DIR/zapret/nfq/nfqws" ]; then
|
if [ ! -f "$BUILD_DIR/zapret/nfq/nfqws" ]; then
|
||||||
echo "[!] nfqws binary not found after rebuild"
|
echo "[!] nfqws binary not found after rebuild"
|
||||||
|
|||||||
Reference in New Issue
Block a user