Originally committed as revision 21348 to svn://svn.ffmpeg.org/ffmpeg/trunk
Måns Rullgård authored on 2010/01/20 22:22:36... | ... |
@@ -1373,6 +1373,8 @@ ranlib="ranlib" |
1373 | 1373 |
strip="strip" |
1374 | 1374 |
yasmexe="yasm" |
1375 | 1375 |
|
1376 |
+nm_opts='-g' |
|
1377 |
+ |
|
1376 | 1378 |
# machine |
1377 | 1379 |
arch=$(uname -m) |
1378 | 1380 |
cpu="generic" |
... | ... |
@@ -2020,6 +2022,7 @@ case $target_os in |
2020 | 2020 |
enabled x86 && SHFLAGS="-mimpure-text $SHFLAGS" |
2021 | 2021 |
network_extralibs="-lsocket -lnsl" |
2022 | 2022 |
add_cppflags -D__EXTENSIONS__ |
2023 |
+ nm_opts='-P -g' |
|
2023 | 2024 |
;; |
2024 | 2025 |
netbsd) |
2025 | 2026 |
oss_indev_extralibs="-lossaudio" |
... | ... |
@@ -2225,7 +2228,7 @@ enabled pic && enable_pic |
2225 | 2225 |
check_cc <<EOF || die "Symbol mangling check failed." |
2226 | 2226 |
int ff_extern; |
2227 | 2227 |
EOF |
2228 |
-sym=$($nm -g $TMPO | awk '/ff_extern/{ print substr($0, match($0, /[^ \t]*ff_extern/)) }') |
|
2228 |
+sym=$($nm $nm_opts $TMPO | awk '/ff_extern/{ print substr($0, match($0, /[^ \t]*ff_extern/)) }') |
|
2229 | 2229 |
extern_prefix=${sym%%ff_extern*} |
2230 | 2230 |
|
2231 | 2231 |
check_cc <<EOF && enable inline_asm |