Subject: lib/4359: src/gnu/usr.bin/gcc/libobjc/Makefile doesn't include $CPPFLAGS
To: None <>
From: Bill Studenmund <wrstuden@vespasia.Stanford.EDU>
List: netbsd-bugs
Date: 10/26/1997 19:09:29
>Number:         4359
>Category:       lib
>Synopsis:       subject says it all
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 26 19:20:02 1997
>Originator:     Bill Studenmund
>Release:        NetBSD1.3_Alpha
System: NetBSD vespasia 1.2G NetBSD 1.2G (VESPASIA) #7: Wed Aug 20 20:15:06 PDT 1997 root@vespasia:/y2/ i386
source sup'd today, and all files in src/gnu/usr.bin/libobjc checked

Using DESTDIR to build w/o overwriting working tree.

Main tree is 1.2G from August or so.

Compilation of the .m files in src/gnu/usr.bin/gcc/libobjc will
fail in a DESTDIR environment if /usr/include/objc hasn't been
installed as the .m.o rule in /src/gnu/usr.bin/gcc/libobjc/Makefile
doesn't have a ${CPPFLAGS} item, so the replacement standard
includes don't get included. So the include files won't be

First found as part of a make build UPDATE=1 -m $DESTDIR /usr/share/mk

Try to build the library when libobjc's headers only exist
in $DESTDIR/usr/include/objc and not /usr/include/objc.
Add "${CPPFLAGS}" to the .m.o rule on line 12 of src/gnu/usr.bin/gcc