Subject: lib/4359: src/gnu/usr.bin/gcc/libobjc/Makefile doesn't include $CPPFLAGS
To: None <gnats-bugs@gnats.netbsd.org>
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
>Last-Modified:
>Originator:     Bill Studenmund
>Organization:
	
>Release:        NetBSD1.3_Alpha
>Environment:
System: NetBSD vespasia 1.2G NetBSD 1.2G (VESPASIA) #7: Wed Aug 20 20:15:06 PDT 1997 root@vespasia:/y2/cur.build/src/sys/arch/i386/compile/VESPASIA i386
source sup'd today, and all files in src/gnu/usr.bin/libobjc checked
against ftp.netbsd.org.

Using DESTDIR to build w/o overwriting working tree.

Main tree is 1.2G from August or so.

>Description:
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
found.

First found as part of a make build UPDATE=1 -m $DESTDIR /usr/share/mk
>How-To-Repeat:

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