[BusyBox] Pristine source directory (patch)
Erik Andersen
andersen at lineo.com
Thu Nov 30 21:50:24 UTC 2000
On Wed Nov 29, 2000 at 02:18:58PM -0800, Larry Doolittle wrote:
> Erik -
>
> On Wed, Nov 29, 2000 at 03:08:57PM -0700, Erik Andersen wrote:
> >
> > Excellent. Thanks Larry and Matt at getting this stuff
> > working and clean. Applied.
>
> Well, none of the three patches actually work the
> way I would hope. The issue is getting the search
> order right, especially for Config.h. In my second
> patch, the only Config.h that is considered is the
> one in the pristine directory.
>
> Matt's patch assumes that VPATH is only a single
> directory, not a list.
>
> I played around with things like
>
> CONFIG_LIST = $(addsuffix /Config.h,$(subst :, ,$(VPATH)))
> CONFIG_H = $(word 1,$(shell ls -f -1 $(CONFIG_LIST) 2>/dev/null))
> CFLAGS += $(patsubst %,-I%,$(subst :, ,$(VPATH)))
>
> ...but it looks like gcc goes to the directory that holds
> the .c file first, and to -I. second. That makes the search
> order inconsistent between busybox.sh (which I adapted to use
> $(CONFIG_H)) and the compile.
Hmm. I'll play around with this a bit as I adapt the debian package
to do this... Maybe I can come up with something better... Or not,
-Erik
--
Erik B. Andersen email: andersen at lineo.com
--This message was written using 73% post-consumer electrons--
More information about the busybox
mailing list