🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #53

error in objc/Makefile (2.3.1)

#53
From: Geoffrey P Waigh
Date: Mon, 02 Nov 1992 16:20
39 lines
2000 bytes
There is an error in the gcc-2.3.1/objc/Makefile:
The dependency lists refer to header files in the main source directory
using a path of .. rather than $(srcdir).  This breaks when compiling
gcc in a separate directory.

I don't think the relative path for the command under the all target
needs modification, since objc/Makefile is not relocated, and $(srcdir)
will not normally be set if the make was not invoked from the parent make.

Geoffrey Waigh
g9gwaigh@cdf.utoronto.ca

Patch follows:
*** Makefile.old	Mon Nov  2 20:59:58 1992
--- Makefile    Mon Nov  2 19:40:10 1992
***************
*** 35,45 ****
        $(AR) rc libobjc.a object.o core.o hash.o
  # ranlib is run in the parent directory's makefile.

! OBJC_H = objc.h objc-proto.h record.h ../assert.h ../gstdarg.h
  HASH_H = hash.h mutex.h

! core.o: core.c $(OBJC_H) $(HASH_H) ../gstddef.h
! hash.o: hash.c $(OBJC_H) $(HASH_H) ../gstddef.h
  object.o: object.m object.h $(OBJC_H)
        $(GCC_FOR_TARGET) -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $<

--- 35,45 ----
        $(AR) rc libobjc.a object.o core.o hash.o
  # ranlib is run in the parent directory's makefile.

! OBJC_H = objc.h objc-proto.h record.h $(srcdir)/assert.h $(srcdir)/gstdarg.h
  HASH_H = hash.h mutex.h

! core.o: core.c $(OBJC_H) $(HASH_H) $(srcdir)/gstddef.h
! hash.o: hash.c $(OBJC_H) $(HASH_H) $(srcdir)/gstddef.h
  object.o: object.m object.h $(OBJC_H)
        $(GCC_FOR_TARGET) -c $(GCC_CFLAGS) $(SUBDIR_INCLUDES) $<
Technical Details
Message-ID: <92Nov2.212028est.30989@marvin.cdf.toronto.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!portal!lll-winken!iggy.GW.Vitalink.COM!cs.widener.edu!umn.edu!spool.mu.edu!caen!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cdf.toronto.edu!g9gwaigh

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!portal!lll-winken!iggy.GW.Vitalink.COM!cs.widener.edu!umn.edu!spool.mu.edu!caen!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cdf.toronto.edu!g9gwaigh
From: g9gwaigh@cdf.toronto.edu (Geoffrey P Waigh)
Newsgroups: gnu.gcc.bug
Subject: error in objc/Makefile (2.3.1)
Message-ID: <92Nov2.212028est.30989@marvin.cdf.toronto.edu>
Date: 2 Nov 92 16:20:23 GMT
Sender: gnulists@ai.mit.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 39
Approved: bug-gcc@prep.ai.mit.edu