Skip to content
Snippets Groups Projects
Commit 2a8a860a authored by Mans Rullgard's avatar Mans Rullgard
Browse files

configure: include flags in nm variable


This simplifies ensuring proper flags are used when the default
is overridden by the system or on the command line.

Signed-off-by: default avatarMans Rullgard <mans@mansr.com>
parent ee0f53e9
No related branches found
No related tags found
No related merge requests found
...@@ -1769,13 +1769,12 @@ ar_default="ar" ...@@ -1769,13 +1769,12 @@ ar_default="ar"
cc_default="gcc" cc_default="gcc"
host_cc_default="gcc" host_cc_default="gcc"
ln_s="ln -sf" ln_s="ln -sf"
nm_default="nm" nm_default="nm -g"
objformat="elf" objformat="elf"
pkg_config_default=pkg-config pkg_config_default=pkg-config
ranlib="ranlib" ranlib="ranlib"
yasmexe="yasm" yasmexe="yasm"
nm_opts='-g'
nogas=":" nogas=":"
# machine # machine
...@@ -2038,7 +2037,7 @@ ranlib="${cross_prefix}${ranlib}" ...@@ -2038,7 +2037,7 @@ ranlib="${cross_prefix}${ranlib}"
sysinclude_default="${sysroot}/usr/include" sysinclude_default="${sysroot}/usr/include"
set_default cc nm pkg_config sysinclude set_default cc pkg_config sysinclude
enabled cross_compile || host_cc_default=$cc enabled cross_compile || host_cc_default=$cc
set_default host_cc set_default host_cc
...@@ -2690,7 +2689,7 @@ case $target_os in ...@@ -2690,7 +2689,7 @@ case $target_os in
# guards for processor-specific code, instead suppress # guards for processor-specific code, instead suppress
# generation of the HWCAPS ELF section on Solaris x86 only. # generation of the HWCAPS ELF section on Solaris x86 only.
enabled_all suncc x86 && echo "hwcap_1 = OVERRIDE;" > mapfile && add_ldflags -Wl,-M,mapfile enabled_all suncc x86 && echo "hwcap_1 = OVERRIDE;" > mapfile && add_ldflags -Wl,-M,mapfile
nm_opts='-P -g' nm_default='nm -P -g'
;; ;;
netbsd) netbsd)
disable symver disable symver
...@@ -2881,6 +2880,7 @@ echo "config:$arch:$subarch:$cpu:$target_os:$(esc $cc_ident):$(esc $LIBAV_CONFIG ...@@ -2881,6 +2880,7 @@ echo "config:$arch:$subarch:$cpu:$target_os:$(esc $cc_ident):$(esc $LIBAV_CONFIG
check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic
set_default $PATHS_LIST set_default $PATHS_LIST
set_default nm
# we need to build at least one lib type # we need to build at least one lib type
if ! enabled_any static shared; then if ! enabled_any static shared; then
...@@ -2928,7 +2928,7 @@ enabled pic && enable_pic ...@@ -2928,7 +2928,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 $nm_opts $TMPO | awk '/ff_extern/{ print substr($0, match($0, /[^ \t]*ff_extern/)) }') sym=$($nm $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_weak inline_asm check_cc <<EOF && enable_weak inline_asm
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment