[BusyBox] Pristine source directory (patch)
Erik Andersen
andersen at lineo.com
Fri Dec 1 01:26:00 UTC 2000
On Thu Nov 30, 2000 at 02:05:17PM -0800, Larry Doolittle wrote:
> > > 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,
>
> What I show above may be almost enough to get the compile working
> "right", if you add "-I-" to CFLAGS. man gcc. I just tested that,
> and it didn't blow up.
>
> I'd at least recommend that up in the Makefile where it says
> # If you have a "pristine" source directory, point BB_SRC_DIR to it.
> add lines that say "experimental and incomplete; tell the mailing
> list <busybox at busybox.net> if you do or don't like it
> so far."
>
> - Larry
Hmm. This looks helpful...
http://www.paulandlesley.org/gmake/multi-arch.html
-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