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: [PATCH, libgfortran] Remove AM_MAKEFLAGS.


	This looks like a shell substitution problem.  Top-level Makefile
EXTRA_TARGET_FLAGS specifically replaces CC with CC_FOR_TARGET, but does
not expand immediately:

# Flags to pass down to makes which are built with the target environment.
# The double $ decreases the length of the command line; the variables
# are set in BASE_FLAGS_TO_PASS, and the sub-make will expand them.
...
        'CC=$$(CC_FOR_TARGET)' \

CC_FOR_TARGET already is passed; AM_MAKEFLAGS did not change that.  The
addition of AM_MAKEFLAGS probably forced an extra shell substitution when
all of those variables were passed on the commandline.

David


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