This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[config]: patch fix program-transform-name


Hi

Currently on trunk and also on 4.1 branch --program-transform-name does not work. The reason is that we are using target_alias always when detecting the target tools.
this patch changes it to use program_transform_name instead. top level configure needs to be regenerated as well.


Did builds for arm-none-eabi and i686-pc-linux-gnu with and without program transform name.

Is it ok?

config/Changelog

2006-10-11 Khem Raj <khem@mvista.com>
* acx.m4: Use program_transform_name to calculate ncn_target_tool_prefix.


Thanks

--
Khem Raj <khem@mvista.com>
MontaVista Software, Inc.
www.mvista.com


Index: config/acx.m4
===================================================================
--- config/acx.m4       (revision 111959)
+++ config/acx.m4       (working copy)
@@ -99,7 +99,7 @@
 [ncn_tool_prefix=
 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
 ncn_target_tool_prefix=
-test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
+test -n "program_transform_name" && ncn_target_tool_prefix=`echo | sed ${program_transform_name}`
 ]) []dnl # _NCN_TOOL_PREFIXES

 ####


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]