[PATCH, libgfortran] Remove AM_MAKEFLAGS.
David Edelsohn
dje@watson.ibm.com
Wed Dec 8 22:38:00 GMT 2004
I have not built a cross-compiler with libgfortran.
BTW, because the Makefile rule to build environ.lo is
environ.lo: runtime/environ.c
$(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o environ.lo `test -f 'runtime/environ.c' || echo '$(srcdir)/'`runtime/environ.c
the only way that "(CC_FOR_TARGET)" would appear in place of $(CC) is if
it *were* getting substituted for CC but substituted incorrectly. It is
substituting it literally instead of expanding it.
I would add some commands to the libgfortran Makefile manually to
see what values of $(CC) and $(CC_FOR_TARGET) it is receiving.
Are you using GNU Bash or HP-UX Shell? It might be a shell
problem or the version of Make. I do not have any intuition about the
difference between native and cross build in this case. Could the cross
build accidentally be invoking a different shell?
I'm fairly confident that the AM_MAKEFLAGS change was fixing the
symptom and not the problem.
David
More information about the Fortran
mailing list