[FFmpeg-devel] [RFC] allow overriding of $nm

Reimar Döffinger Reimar.Doeffinger
Sat Dec 13 15:24:22 CET 2008


On Sat, Dec 13, 2008 at 02:14:14PM +0000, M?ns Rullg?rd wrote:
> Reimar D?ffinger <Reimar.Doeffinger at stud.uni-karlsruhe.de> writes:
> > Index: configure
> > ===================================================================
> > --- configure	(revision 16087)
> > +++ configure	(working copy)
> > @@ -129,6 +129,7 @@
> >    echo "  --extra-ldflags=ELDFLAGS add ELDFLAGS to LDFLAGS [$LDFLAGS]"
> >    echo "  --extra-libs=ELIBS       add ELIBS [$ELIBS]"
> >    echo "  --extra-version=STRING   version string suffix []"
> > +  echo "  --nm=NM                  use nm tool [$nm]"
> 
> $nm will not be set here.

That's what I expected, but I just copy-and-paste from the --cc
description.
Anyway, here is the updated version.
-------------- next part --------------
Index: configure
===================================================================
--- configure	(revision 16089)
+++ configure	(working copy)
@@ -120,6 +120,7 @@
   echo "  --target-os=OS           compiler targets OS [$target_os]"
   echo "  --target-exec=CMD        command to run executables on target"
   echo "  --target-path=DIR        path to view of build directory on target"
+  echo "  --nm=NM                  use nm tool"
   echo "  --cc=CC                  use C compiler CC [$cc]"
   echo "  --host-cc=HOSTCC         use host C compiler HOSTCC"
   echo "  --host-cflags=HCFLAGS    use HCFLAGS when compiling for host"
@@ -919,6 +920,7 @@
     host_ldflags
     host_libs
     logfile
+    nm
     source_path
     target_exec
     target_os
@@ -1097,7 +1099,7 @@
 host_cc_default="gcc"
 yasmexe="yasm"
 ar="ar"
-nm="nm"
+nm_default="nm"
 ranlib="ranlib"
 strip="strip"
 ln_s="ln -sf"
@@ -1265,11 +1267,11 @@
 cc_default="${cross_prefix}${cc_default}"
 yasmexe="${cross_prefix}${yasmexe}"
 ar="${cross_prefix}${ar}"
-nm="${cross_prefix}${nm}"
+nm_default="${cross_prefix}${nm}"
 ranlib="${cross_prefix}${ranlib}"
 strip="${cross_prefix}${strip}"
 
-set_default cc
+set_default cc nm
 enabled cross_compile || host_cc_default=$cc
 set_default host_cc
 



More information about the ffmpeg-devel mailing list