re PR libstdc++/26513 (make_exports.pl hardcoded to build nm)
authorShantonu Sen <ssen@opendarwin.org>
Wed, 26 Apr 2006 19:13:18 +0000 (19:13 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Wed, 26 Apr 2006 19:13:18 +0000 (19:13 +0000)
2006-04-26  Shantonu Sen  <ssen@opendarwin.org>

         PR libstdc++/26513
         * scripts/make_exports.pl: Use $ENV{NM_FOR_TARGET}, if present.

From-SVN: r113281

libstdc++-v3/ChangeLog
libstdc++-v3/scripts/make_exports.pl

index 27437c5a5488242db067c06758b8cfa73eea18e9..e98e4b59f0f7a28ba7971c03b5e94f1b4ac677b5 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-26  Shantonu Sen  <ssen@opendarwin.org>
+
+         PR libstdc++/26513
+         * scripts/make_exports.pl: Use $ENV{NM_FOR_TARGET}, if present.
+
 2006-04-23  Marc Glisse  <marc.glisse@normalesup.org>
 
        PR libstdc++/27199
index 5d1cd74a861e73fdfd685d169c0fe1477675d073..a20b2dc6f4cdfdea0fd1d241d5b7e02422fbbd78 100644 (file)
@@ -87,10 +87,10 @@ my $cxx_regex = (join '|',@cxx_globs);
 # Get all the symbols from the library, match them, and add them to a hash.
 
 my %export_hash = ();
-
+my $nm = $ENV{'NM_FOR_TARGET'} || "nm";
 # Process each symbol.
-print STDERR 'nm -P '.(join ' ',@ARGV).'|';
-open NM,'nm -P '.(join ' ',@ARGV).'|' or die $!;
+print STDERR $nm.' -P '.(join ' ',@ARGV).'|';
+open NM,$nm.' -P '.(join ' ',@ARGV).'|' or die $!;
 # Talk to c++filt through a pair of file descriptors.
 open2(*FILTIN, *FILTOUT, "c++filt --strip-underscores") or die $!;
 NAME: while (<NM>) {