aboutsummaryrefslogtreecommitdiff
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
parent52d094062c037e979ebbc2f4ed4edd793564c2d3 (diff)
downloadgcc-0c3f35451c3fe2072fb918c1387167d996dfd1fe.zip
gcc-0c3f35451c3fe2072fb918c1387167d996dfd1fe.tar.gz
gcc-0c3f35451c3fe2072fb918c1387167d996dfd1fe.tar.bz2
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
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/scripts/make_exports.pl6
2 files changed, 8 insertions, 3 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 27437c5..e98e4b5 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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
diff --git a/libstdc++-v3/scripts/make_exports.pl b/libstdc++-v3/scripts/make_exports.pl
index 5d1cd74..a20b2dc 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>) {