Subject: Re: Problem building libobj w/ today's sup & DESTDIR FIXED
To: None <current-users@NetBSD.ORG>
From: Bill Studenmund <skippy@macro.stanford.edu>
List: current-users
Date: 10/26/1997 18:57:59
On Sun, 26 Oct 1997, Bill Studenmund wrote:

> When doing a make build UPDATE=1 -m /altroot/usr/share/mk within
> a DESTDIR (= /altroot) environment, in src/gnu/usr.bin/gcc I get the
> following.
> 
> ===> common
> ===> cc1
> ===> cc1plus
> ===> cc1obj
> ===> libgcc
> ===> libobjc
> cc -c -O -I/y2/cur.build/src/gnu/usr.bin/gcc/libobjc/../common -I/y2/cur.build/src/gnu/usr.bin/gcc/libobjc/../arch  -I/y2/cur.build/src/gnu/usr.bin/gcc/libobjc/../arch/i386  -Werror -o NXConstStr.o NXConstStr.m
> NXConstStr.m:22: objc/NXConstStr.h: No such file or directory
> *** Error code 1
> 
> Stop.
> *** Error code 1
> 
> Stop.
> 
> Should that be just NXConstStr.h? It's in the same directory as the
> source. Or, should there be some -nostdinc -I/altroot/usr/include
> additions when DESTDIR's set? $DESTDIR/usr/include/objc/NXConstStr.h does
> exist.

After much fussing w/ make files, I realized the .m.o rule in
src/gnu/usr.bin/gcc/libobjc/Makefile needs a ${CPPFLAGS} added to it. Now
all is well.

Take care,

Bill