[PATCH] LDFLAGS configuration

Bernhard Fischer rep.nop at aon.at
Wed Jun 7 16:44:01 UTC 2006


On Wed, Jun 07, 2006 at 10:08:57AM -0600, Shaun Jackman wrote:
>On 6/6/06, Rob Landley <rob at landley.net> wrote:
>>Does supplying it as an environment variable work?
>>
>>LDFLAGS="-Wl,--verbose -Wl,-n -Wl,-O1 -Wl,-t" make
>>
>>There are such things as wrapper scripts...
>
>Yes, using an environment variable would work, although it's not
>recommended. See below for comments from the make's manual. I'd much
>prefer, and it seems far more congruous, to set LDFLAGS in the same
>place one sets CFLAGS. It seems pretty arbitrary that CFLAGS can be
>set in the configuration process, but LDFLAGS cannot.

Well, and what about ASFLAGS and all the other variables like LOADLIBES,
LDLIBS, and, most prominently, CPPFLAGS?
I'm not strongly opposed to adding config-entries for it/them (as i won't
use them myself since passing them to make via a wrapper or cmdline history
Works For Me), FWIW.

I'll let Mr. Landley decide on this ;)
cheers,



More information about the busybox mailing list