diff options
author | Shantonu Sen <ssen@opendarwin.org> | 2006-04-26 19:13:18 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2006-04-26 19:13:18 +0000 |
commit | 0c3f35451c3fe2072fb918c1387167d996dfd1fe (patch) | |
tree | e06578a6b11155970b8f76b9228d0bee03852893 /libstdc++-v3/scripts/make_exports.pl | |
parent | 52d094062c037e979ebbc2f4ed4edd793564c2d3 (diff) | |
download | gcc-0c3f35451c3fe2072fb918c1387167d996dfd1fe.tar.gz |
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
Diffstat (limited to 'libstdc++-v3/scripts/make_exports.pl')
-rw-r--r-- | libstdc++-v3/scripts/make_exports.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libstdc++-v3/scripts/make_exports.pl b/libstdc++-v3/scripts/make_exports.pl index 5d1cd74a861..a20b2dc6f4c 100644 --- a/libstdc++-v3/scripts/make_exports.pl +++ b/libstdc++-v3/scripts/make_exports.pl @@ -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>) { |