Some weird bug with non gnu-make

Marc Espie espie@schutzenberger.liafa.jussieu.fr
Sat Jul 14 07:14:00 GMT 2001


On Thu, Jul 12, 2001 at 08:52:41PM -0400, Phil Edwards wrote:
> On Fri, Jul 13, 2001 at 01:22:33AM +0200, Marc Espie wrote:
> > Reading through libstdc++-v3, some Makefiles already have --tag CXX, but
> > some  don't have anything.
> 
> Looks like libmath should get --tag CC since it's C, libio isn't currently
> used at all, and libsupc++ & src already have tags.  Is there anything else?
> 
> I don't know what's involved beyond just adding the params in Makefile.am's
> and regenerating.  I oughta know this by now... sigh.

Well, works better than I thought. I got the following patch currently
running.

Assuming it bootstraps to completion, permission to commit this to HEAD
and 3.0-branch ?

I mean, this should allow bootstrap without gnu-make in quite a few more
situations.

2001-07-14  Marc Espie <espie@cvs.openbsd.org>
	* libmath/Makefile.am:  Explicitly set --tag CC in libtool
	invocations.
	* libmath/Makefile.in:  Regen.

*** libmath/Makefile.am.orig	Sat Jul 14 16:00:09 2001
--- libmath/Makefile.am	Sat Jul 14 16:01:46 2001
*************** libmath_la_DEPENDENCIES = $(libmath_la_L
*** 43,49 ****
  libmath_la_SOURCES = \
  	signbit.c signbitf.c
  
! LINK = $(LIBTOOL) --mode=link "$(CCLD)" $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
  
  # Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
  GLIBCPP_INCLUDE_DIR = @GLIBCPP_INCLUDE_DIR@
--- 43,53 ----
  libmath_la_SOURCES = \
  	signbit.c signbitf.c
  
! LINK = $(LIBTOOL) --mode=link --tag CC "$(CCLD)" $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
! 
! # Need to explicitly set LTCOMPILE to make sure libtool uses the correct
! # configuration
! LTCOMPILE = $(LIBTOOL) --mode=compile --tag CC $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  
  # Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
  GLIBCPP_INCLUDE_DIR = @GLIBCPP_INCLUDE_DIR@
*** libmath/Makefile.in.orig	Mon May 14 21:49:10 2001
--- libmath/Makefile.in	Sat Jul 14 16:02:28 2001
*************** libmath_la_DEPENDENCIES = $(libmath_la_L
*** 131,137 ****
  libmath_la_SOURCES =  	signbit.c signbitf.c
  
  
! LINK = $(LIBTOOL) --mode=link "$(CCLD)" $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
  
  # Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
  GLIBCPP_INCLUDE_DIR = @GLIBCPP_INCLUDE_DIR@
--- 131,141 ----
  libmath_la_SOURCES =  	signbit.c signbitf.c
  
  
! LINK = $(LIBTOOL) --mode=link --tag CC "$(CCLD)" $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
! 
! # Need to explicitly set LTCOMPILE to make sure libtool uses the correct
! # configuration
! LTCOMPILE = $(LIBTOOL) --mode=compile --tag CC $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  
  # Use common includes from acinclude.m4/GLIBCPP_EXPORT_INCLUDES
  GLIBCPP_INCLUDE_DIR = @GLIBCPP_INCLUDE_DIR@
*************** libmath_la_LDFLAGS = 
*** 157,163 ****
  libmath_la_OBJECTS =  signbit.lo signbitf.lo
  CFLAGS = @CFLAGS@
  COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
- LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  CCLD = $(CC)
  DIST_COMMON =  Makefile.am Makefile.in
  
--- 161,166 ----



More information about the Gcc-patches mailing list