Commit 8182dc34 authored by Måns Rullgård's avatar Måns Rullgård

configure: use nm -P on Solaris

Originally committed as revision 21348 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent ffcc6e24
...@@ -1373,6 +1373,8 @@ ranlib="ranlib" ...@@ -1373,6 +1373,8 @@ ranlib="ranlib"
strip="strip" strip="strip"
yasmexe="yasm" yasmexe="yasm"
nm_opts='-g'
# machine # machine
arch=$(uname -m) arch=$(uname -m)
cpu="generic" cpu="generic"
...@@ -2020,6 +2022,7 @@ case $target_os in ...@@ -2020,6 +2022,7 @@ case $target_os in
enabled x86 && SHFLAGS="-mimpure-text $SHFLAGS" enabled x86 && SHFLAGS="-mimpure-text $SHFLAGS"
network_extralibs="-lsocket -lnsl" network_extralibs="-lsocket -lnsl"
add_cppflags -D__EXTENSIONS__ add_cppflags -D__EXTENSIONS__
nm_opts='-P -g'
;; ;;
netbsd) netbsd)
oss_indev_extralibs="-lossaudio" oss_indev_extralibs="-lossaudio"
...@@ -2225,7 +2228,7 @@ enabled pic && enable_pic ...@@ -2225,7 +2228,7 @@ enabled pic && enable_pic
check_cc <<EOF || die "Symbol mangling check failed." check_cc <<EOF || die "Symbol mangling check failed."
int ff_extern; int ff_extern;
EOF EOF
sym=$($nm -g $TMPO | awk '/ff_extern/{ print substr($0, match($0, /[^ \t]*ff_extern/)) }') sym=$($nm $nm_opts $TMPO | awk '/ff_extern/{ print substr($0, match($0, /[^ \t]*ff_extern/)) }')
extern_prefix=${sym%%ff_extern*} extern_prefix=${sym%%ff_extern*}
check_cc <<EOF && enable inline_asm check_cc <<EOF && enable inline_asm
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment