From 0c3f35451c3fe2072fb918c1387167d996dfd1fe Mon Sep 17 00:00:00 2001 From: Shantonu Sen Date: Wed, 26 Apr 2006 19:13:18 +0000 Subject: [PATCH] re PR libstdc++/26513 (make_exports.pl hardcoded to build nm) 2006-04-26 Shantonu Sen PR libstdc++/26513 * scripts/make_exports.pl: Use $ENV{NM_FOR_TARGET}, if present. From-SVN: r113281 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/scripts/make_exports.pl | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 27437c5a548..e98e4b59f0f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2006-04-26 Shantonu Sen + + PR libstdc++/26513 + * scripts/make_exports.pl: Use $ENV{NM_FOR_TARGET}, if present. + 2006-04-23 Marc Glisse PR libstdc++/27199 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 () { -- 2.30.2