[FFmpeg-devel] [PATCH] configure: do not use interval regexp operators with awk

Marvin Scholz epirat07 at gmail.com
Thu Sep 19 23:22:46 EEST 2024


Some awk implementations like mawk (used on Ubuntu) do not support
these.
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index d872213af7a..d568739bf90 100755
--- a/configure
+++ b/configure
@@ -6150,11 +6150,11 @@ enable_weak_pic() {
 enabled pic && enable_weak_pic
 
 test_cc <<EOF || die "Symbol mangling check failed."
 int ff_extern;
 EOF
-sym=$($nm $TMPO | awk '/[ \t]+[^ \t]{0,1}ff_extern$/{ print substr($0, match($0, /[^ \t]{0,1}ff_extern$/)) }')
+sym=$($nm $TMPO | awk '/[ \t]+[^ \t]?ff_extern$/{ print substr($0, match($0, /[^ \t]?ff_extern$/)) }')
 extern_prefix=${sym%%ff_extern*}
 
 log "Symbol prefix detected as: '${extern_prefix}'"
 
 ! disabled inline_asm && check_inline_asm inline_asm '"" ::'

base-commit: ed633a1312141e7af0a31a506767127e78cd6558
-- 
2.46.0


More information about the ffmpeg-devel mailing list