This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: possible GNU "make" bug in redhat 5.0 intel?
- To: egcs-bugs at cygnus dot com, jhpb at sarto dot gaithersburg dot md dot us
- Subject: Re: possible GNU "make" bug in redhat 5.0 intel?
- From: Manfred Hollstein <manfred at s-direktnet dot de>
- Date: Wed, 28 Jan 98 17:24:47 +0100
- Cc: Franz dot Sirl-kernel at lauterbach dot com
- References: <9801281532.AA13163@lts.sel.alcatel.de>
- Reply-To: Manfred Hollstein <manfred at s-direktnet dot de>
On Wed, 28 January 1998, 16:32:01, Manfred.Hollstein@ks.sel.alcatel.de wrote:
> On Tue, 27 Jan 1998 21:53:37 -0500 Joseph H. Buehler (jhpb@sarto.gaithersburg.md.us) wrote:
>
> > In both cases, that "/include" is supposed to be $(includedir), which
> > is $(local_prefix)/include, which is /usr/local/include. I ran a make
> > -n on the makefile while the "make check" was doing its thing, and
> > $(includedir) gets set correctly.
> >
> > Perhaps a GNU make bug? Anyone else see this?
>
> No, it's not a GNU make bug; it's caused by the recent change to
> FLAGS_TO_PASS.
>
> The top-level Makefile.in includes local_prefix in BASE_FLAGS_TO_PASS
> without providing a proper definition. This causes the value in gcc's
> Makefile to be ignored :-(
>
> Currently, I'm still working on gcc-2.8.0, as soon as I come back to egcs,
> I'll come up with a patch.
In ./:
Wed Jan 28 17:20:25 1998 Manfred Hollstein <manfred@s-direktnet.de>
* Makefile.in (BASE_FLAGS_TO_PASS): Remove passing $(local_prefix)
here as it is not defined in the toplevel Makefile.
In libio/:
Wed Jan 28 17:20:25 1998 Manfred Hollstein <manfred@s-direktnet.de>
* config.shared (FLAGS_TO_PASS): Add gxx_include_dir.
diff -c -p egcs-980122/Makefile.in.orig egcs-980122/Makefile.in
*** egcs-980122/Makefile.in.orig Sat Jan 17 21:28:11 1998
--- egcs-980122/Makefile.in Wed Jan 28 17:14:22 1998
*************** BASE_FLAGS_TO_PASS = \
*** 329,335 ****
"CXXFLAGS_FOR_TARGET=$(CXXFLAGS_FOR_TARGET)" \
"CXX_FOR_TARGET=$(CXX_FOR_TARGET)" \
"DLLTOOL_FOR_TARGET=$(DLLTOOL_FOR_TARGET)" \
- "gxx_include_dir=$(gxx_include_dir)" \
"INSTALL=$(INSTALL)" \
"INSTALL_DATA=$(INSTALL_DATA)" \
"INSTALL_PROGRAM=$(INSTALL_PROGRAM)" \
--- 329,334 ----
*************** BASE_FLAGS_TO_PASS = \
*** 341,347 ****
"LIBCFLAGS_FOR_TARGET=$(LIBCFLAGS_FOR_TARGET)" \
"LIBCXXFLAGS=$(LIBCXXFLAGS)" \
"LIBCXXFLAGS_FOR_TARGET=$(LIBCXXFLAGS_FOR_TARGET)" \
- "local_prefix=$(local_prefix)" \
"M4=$(M4)" \
"MAKE=$(MAKE)" \
"MAKEINFO=$(MAKEINFO) $(MAKEINFOFLAGS)" \
--- 340,345 ----
*************** BASE_FLAGS_TO_PASS = \
*** 357,363 ****
"YACC=$(YACC)" \
"exec_prefix=$(exec_prefix)" \
"prefix=$(prefix)" \
! "tooldir=$(tooldir)"
# Flags to pass down to most sub-makes, in which we're building with
# the host environment.
--- 355,362 ----
"YACC=$(YACC)" \
"exec_prefix=$(exec_prefix)" \
"prefix=$(prefix)" \
! "tooldir=$(tooldir)" \
! "gxx_include_dir=$(gxx_include_dir)"
# Flags to pass down to most sub-makes, in which we're building with
# the host environment.
diff -c -p egcs-980122/libio/config.shared.orig egcs-980122/libio/config.shared
*** egcs-980122/libio/config.shared.orig Fri Jan 16 00:46:28 1998
--- egcs-980122/libio/config.shared Wed Jan 28 17:17:14 1998
*************** if [ "${SUBDIRS}" != "" ] ; then
*** 212,217 ****
--- 212,218 ----
echo >&2 ' "prefix=$(prefix)" \'
echo >&2 ' "exec_prefix=$(exec_prefix)" \'
echo >&2 ' "tooldir=$(tooldir)" \'
+ echo >&2 ' "gxx_include_dir=$(gxx_include_dir)" \'
echo >&2 ' "AR=$(AR)" \'
echo >&2 ' "AR_FLAGS=$(AR_FLAGS)" \'
echo >&2 ' "CC=$(CC)" \'