[BusyBox] Pristine source directory (patch)

Larry Doolittle ldoolitt at recycle.lbl.gov
Wed Nov 29 22:18:58 UTC 2000


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.

      - Larry





More information about the busybox mailing list