[PATCH] LDFLAGS configuration

Shaun Jackman sjackman at gmail.com
Wed Jun 7 16:48:24 PDT 2006


On 6/7/06, Rob Landley <rob at landley.net> wrote:
> I'd prefer if they were both set on the command line, either before or after
> the invocation of Make.  (I keep meaning to test if
> "make CROSS_COMPILE=prefix-" works for us the way it does for the Linux
> kernel.  I'd have to look up the precedence order of make variable
> assignments, and I need to go get dinner before doing much more on the
> computer.  Getting punchy...)

The order of make variable precedence is command line over Makefile
over environment.

> Right now menuconfig is used both to select features and to define the build
> environment, and those two things really shouldn't be tied together like
> that.  (I don't think so anyway.  Do you disagree?)

There needs to be some mechanism to configure both features and the
build environment. If we want to reserve make config for features
alone, let's have Rules.mak include .config.mak if it exists, and
allow the user to edit .config.mak and add CFLAGS, LDFLAGS, LDLIBS,
and whatever else tickles his or her fancy, there.

Cheers,
Shaun


More information about the busybox mailing list