diff mbox series

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

Message ID D4AJKCJNREOZ.3OAV7OIDV1244@gmail.com
State Accepted
Headers show
Series [FFmpeg-devel] configure: do not use interval regexp operators with awk | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Marvin Scholz Sept. 19, 2024, 8:22 p.m. UTC
Some awk implementations like mawk (used on Ubuntu) do not support
these.
---
 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


base-commit: ed633a1312141e7af0a31a506767127e78cd6558
diff mbox series

Patch

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 '"" ::'