]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
configure: remove the unwanted compiler flag even if it's the last one
authorDavid Vašek <david.vasek@nic.cz>
Mon, 1 Nov 2021 15:50:24 +0000 (16:50 +0100)
committerDavid Vašek <david.vasek@nic.cz>
Mon, 1 Nov 2021 15:50:24 +0000 (16:50 +0100)
configure.ac

index 6f06441da9cd3754a7240ec791ef8755c511a360..8a71309e7e8d422c249a2ca4247910c24342da1c 100644 (file)
@@ -743,9 +743,9 @@ AM_CONDITIONAL([HAVE_MAKEINFO], test "$MAKEINFO" != "false")
 
 # Strip -fdebug-prefix-map= parameters from flags for better reproducibility of binaries.
 filtered_cflags=$(echo -n "$CFLAGS" | \
-                  sed 's/[[^[:alnum:]]]-f[[^[:space:]]]*-prefix-map=[[^[:space:]]]*[[^[:alnum:]]]/ /g')
+                  sed 's/[[^[:alnum:]]]-f[[^[:space:]]]*-prefix-map=[[^[:space:]]]*//g')
 filtered_cppflags=$(echo -n "$CPPFLAGS" | \
-                    sed 's/[[^[:alnum:]]]-f[[^[:space:]]]*-prefix-map=[[^[:space:]]]*[[^[:alnum:]]]/ /g')
+                    sed 's/[[^[:alnum:]]]-f[[^[:space:]]]*-prefix-map=[[^[:space:]]]*//g')
 
 result_msg_base="  Knot DNS $VERSION