Commit 0c3f3545 by Shantonu Sen Committed by Benjamin Kosnik

re PR libstdc++/26513 (make_exports.pl hardcoded to build nm)

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
parent 52d09406
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
......
......@@ -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>) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment