libpcap: disable some autodetected features to avoid extra dependencies and bloat
[openwrt.git] / scripts / patch-specs.sh
index 2ab7790..3307b6b 100755 (executable)
@@ -62,7 +62,7 @@ patch_specs() {
 }
 
 
-VERSION="$(STAGING_DIR="$DIR" "$CPP" --version | head -n1)"
+VERSION="$(STAGING_DIR="$DIR" "$CPP" --version | sed -ne 's/^.* (.*) //; s/ .*$//; 1p')"
 VERSION="${VERSION:-unknown}"
 
 case "${VERSION##* }" in