is missing Objective-C support
To: None <gnats-bugs@gnats.netbsd.org>
From: None <ignatios@cs.uni-bonn.de>
List: netbsd-bugs
Date: 10/23/1997 11:39:47
>Number: 4324
>Category: misc
>Synopsis: <bsd.*.mk> is missing Objective-C support
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Oct 23 02:50:01 1997
>Last-Modified:
>Originator: Ignatios Souvatzis
>Organization:
University of Bonn, Computer Science department, Chair V
>Release: 1.2-last/1.3-alpha
>Environment:
System: NetBSD macone 1.2G NetBSD 1.2G (SUN4M) #18: Tue Oct 21 12:04:18 CEST 1997 is@macone:/usr/local/obj/kernel/SUN4M sparc
>Description:
The include files in /usr/share/mk don't contain support for
Objective C files (*.m).
In effect, you have to open-code old-style Makefiles to use them.
>How-To-Repeat:
Try this Makefile:
PROG=tennis
SRCS=tennis.m Stack.m
NOMAN=nothere
LDADD=-lobjc
.include <bsd.prog.mk>
>Fix:
Add the relevant pieces (.m.o rule in sys.mk, and everywhere .cc
special stuff is, the same with ^cc^m changes.
Maybe something can be hacked to make -lobjc automagically add itself
to LDADD, if a .m file was on the SRCS list...
Note that this might somehow collide with people doing Modula-3,
Mathematica, Matlab. OTOH, they have to homebrew their makefiles
anyway, and NetBSD doesn't ship any Modula, Mathematica or Matlab
compilers (but ships a working Objective-C one now).
>Audit-Trail:
>Unformatted: