This is the mail archive of the gcc@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]

why AR_FOR_TARGET use program_transform_name


Hello.

I have GCC configured as cross compiler. (i586 to ATMEL AVR)

I'm confused with AR_FOR_TARGET variable from gcc/Makefile
---------- Fragment from gcc-2.95.1/gcc/Makefile -------------
program_transform_name = s,x,x,
program_transform_cross_name = s,^,$(target_alias)-,
[...]

AR_FOR_TARGET = ` \
  if [ -f $(objdir)/../binutils/ar ] ; then \
    echo $(objdir)/../binutils/ar ; \
  else \
    if [ "$(host_canonical)" = "$(target)" ] ; then \
      echo ar; \
    else \
       t='$(program_transform_name)'; echo ar | sed -e $$t ; \
    fi; \
  fi`
--------------------------------------

Why GCC use program_transform_name ?
This is a TARGET AR. May be this is a cross AR.
IMHO program_transform_name must be substituted to
program_transform_cross_name.
May be I'm wrong here ?

Why a cross GCC put himself with a program_transform_cross_name but search
a cross AR with a program_transform_name ?

Denis.


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