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: $RANLIB not passed to libiberty


On Thu, Sep 27, 2007 at 10:34:50AM +0200, Paolo Bonzini wrote:
> 
> Can you try this patch? RANLIB_FOR_BUILD was defined nowhere, hence it 
> was passed as empty to configure and detected (incorrectly) to be 
> "ranlib" instead of "owranlib".
> Index: configure.ac
> ===================================================================
> --- configure.ac	(revision 127728)
> +++ configure.ac	(working copy)
> @@ -1047,9 +1047,31 @@ if test -z "${CC}" && test "${build}" = 
>  fi
>  
>  if test "${build}" != "${host}" ; then
> +  AR_FOR_BUILD=${AR_FOR_BUILD-ar}
> +  AS_FOR_BUILD=${AS_FOR_BUILD-as}
>    CC_FOR_BUILD=${CC_FOR_BUILD-gcc}

$ rm configure; ~/bin/autoconf && rm -rf autom4te.cache
configure.ac:1053: error: possibly undefined macro: AS_FOR_BUILD
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

> +  WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres
> +  WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc

Missing closing braces. If fix that and remove the lines mentioning
AS_FOR_BUILD, it does fix the problem.

-- 
Rask Ingemann Lambertsen
Danish law requires addresses in e-mail to be logged and stored for a year


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