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]

Re: [config]: patch fix program-transform-name


Hi

I found problems when building canadian cross compiler with the patch I sent when the program-transform-name was set to empty. I reworked the patch now it sets ncn_target_tool_prefix to program-transform-name first and then checks if it is empty then does the esxisting check.

Tested on arm-linux-gnuabi, powerpc-unknown-linux
i686-montavista-linux and  mips-unknown-linux

Is this OK?

Thanks

-Khem

:ADDPATCH:

config/Changelog

2006-03-20 Khem Raj <khem@mvista.com>
* acx.m4: Use program_transform_name to compute ncn_target_tool_prefix.



Khem Raj said the following on 03/10/2006 11:37 PM:
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

------------------------------------------------------------------------

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: gcc-4.1.0/config/acx.m4
===================================================================
--- gcc-4.1.0.orig/config/acx.m4
+++ gcc-4.1.0/config/acx.m4
@@ -98,8 +98,8 @@ AC_SUBST([target_subdir]) []dnl
 AC_DEFUN([_NCN_TOOL_PREFIXES],
 [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-
+ncn_target_tool_prefix=`echo | sed ${program_transform_name}`
+test -z "$ncn_target_tool_prefix" &&  test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
 ]) []dnl # _NCN_TOOL_PREFIXES
 
 ####
Index: gcc-4.1.0/configure
===================================================================
--- gcc-4.1.0.orig/configure
+++ gcc-4.1.0/configure
@@ -3640,8 +3640,8 @@ esac
 # Host tools.
 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-
+ncn_target_tool_prefix=`echo | sed ${program_transform_name}`
+test -z "$ncn_target_tool_prefix" &&  test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
 
  for ncn_progname in ar; do
   if test -n "$ncn_tool_prefix"; then

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