Browse code

Allow setting a different nm binary from the configure line.

Originally committed as revision 16102 to svn://svn.ffmpeg.org/ffmpeg/trunk

Reimar Döffinger authored on 2008/12/14 00:13:24
Showing 1 changed files
... ...
@@ -120,6 +120,7 @@ show_help(){
120 120
   echo "  --target-os=OS           compiler targets OS [$target_os]"
121 121
   echo "  --target-exec=CMD        command to run executables on target"
122 122
   echo "  --target-path=DIR        path to view of build directory on target"
123
+  echo "  --nm=NM                  use nm tool"
123 124
   echo "  --cc=CC                  use C compiler CC [$cc]"
124 125
   echo "  --host-cc=HOSTCC         use host C compiler HOSTCC"
125 126
   echo "  --host-cflags=HCFLAGS    use HCFLAGS when compiling for host"
... ...
@@ -919,6 +920,7 @@ CMDLINE_SET="
919 919
     host_ldflags
920 920
     host_libs
921 921
     logfile
922
+    nm
922 923
     source_path
923 924
     target_exec
924 925
     target_os
... ...
@@ -1097,7 +1099,7 @@ cc_default="gcc"
1097 1097
 host_cc_default="gcc"
1098 1098
 yasmexe="yasm"
1099 1099
 ar="ar"
1100
-nm="nm"
1100
+nm_default="nm"
1101 1101
 ranlib="ranlib"
1102 1102
 strip="strip"
1103 1103
 ln_s="ln -sf"
... ...
@@ -1265,11 +1267,11 @@ test -n "$cross_prefix" && enable cross_compile
1265 1265
 cc_default="${cross_prefix}${cc_default}"
1266 1266
 yasmexe="${cross_prefix}${yasmexe}"
1267 1267
 ar="${cross_prefix}${ar}"
1268
-nm="${cross_prefix}${nm}"
1268
+nm_default="${cross_prefix}${nm}"
1269 1269
 ranlib="${cross_prefix}${ranlib}"
1270 1270
 strip="${cross_prefix}${strip}"
1271 1271
 
1272
-set_default cc
1272
+set_default cc nm
1273 1273
 enabled cross_compile || host_cc_default=$cc
1274 1274
 set_default host_cc
1275 1275