This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Your config-ml.in change broke cris-axis-elf newlib multilib build
- From: Paolo Bonzini <paolo dot bonzini at lu dot unisi dot ch>
- To: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>, newlib at sourceware dot org, GCC Patches <gcc-patches at gcc dot gnu dot org>, Steve Ellcey <sje at cup dot hp dot com>
- Date: Sun, 15 Apr 2007 14:54:30 +0200
- Subject: Re: Your config-ml.in change broke cris-axis-elf newlib multilib build
- Reply-to: bonzini at gnu dot org
I suggest trying to apply this workaround in newlib: instead of its own
LIB_AC_PROG_CC, use this sequence:
GCC_NO_EXECUTABLES
# Check the compiler.
# The same as in boehm-gc and libstdc++. Have to borrow it from there.
# We must force CC to /not/ be precious variables; otherwise
# the wrong, non-multilib-adjusted value will be used in multilibs.
m4_rename([_AC_ARG_VAR_PRECIOUS],[real_PRECIOUS])
m4_define([_AC_ARG_VAR_PRECIOUS],[])
AC_PROG_CC
m4_rename([real_PRECIOUS],[_AC_ARG_VAR_PRECIOUS])
This is used by all target libraries in the gcc source tree.
Paolo