mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
configure: fix --cpu=host
The awk command used inadvertently relied on non-standard features. Originally committed as revision 21376 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
258b60c224
commit
27ce1be89b
6
configure
vendored
6
configure
vendored
@ -1783,7 +1783,11 @@ if test "$cpu" = host; then
|
|||||||
gcc)
|
gcc)
|
||||||
check_native(){
|
check_native(){
|
||||||
$cc $1=native -v -c -o $TMPO $TMPC >$TMPE 2>&1 || return
|
$cc $1=native -v -c -o $TMPO $TMPC >$TMPE 2>&1 || return
|
||||||
awk "/$1=/{ match(\$0, /$1=(\\w+)/, a);print a[1];exit }" $TMPE
|
sed -n "/$1=/{
|
||||||
|
s/.*$1=\\([^ ]*\\).*/\\1/
|
||||||
|
p
|
||||||
|
q
|
||||||
|
}" $TMPE
|
||||||
}
|
}
|
||||||
cpu=$(check_native -march || check_native -mcpu)
|
cpu=$(check_native -march || check_native -mcpu)
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user