summaryrefslogtreecommitdiff
path: root/libstdc++-v3/scripts/make_exports.pl
diff options
context:
space:
mode:
authorShantonu Sen <ssen@opendarwin.org>2006-04-26 19:13:18 +0000
committerBenjamin Kosnik <bkoz@gcc.gnu.org>2006-04-26 19:13:18 +0000
commit0c3f35451c3fe2072fb918c1387167d996dfd1fe (patch)
treee06578a6b11155970b8f76b9228d0bee03852893 /libstdc++-v3/scripts/make_exports.pl
parent52d094062c037e979ebbc2f4ed4edd793564c2d3 (diff)
downloadgcc-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.pl6
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>) {