Re: [dwm] [dmenu] OPTFLAGS in config.mk + patch

From: Daniel Bainton <dpb_AT_driftaway.org>
Date: Thu, 9 Apr 2009 08:16:29 +0300

2009/4/8 Matthias-Christian Ott <ott_AT_mirix.org>:
> On Wed, Apr 08, 2009 at 05:37:01PM +0300, Daniel Bainton wrote:
>> 2009/4/8 Szabolcs Nagy <nszabolcs_AT_gmail.com>:
>> > On 4/8/09, Daniel Bainton <dpb_AT_driftaway.org> wrote:
>> >> 2009/4/8 Jan Blazek <appolito2_AT_gmail.com>:
>> >>> +OPTFLAGS = -Os
>> >>
>> >> This wont make any difference, you can't pass it from the command line
>> >> like this anyway.
>> >> You're overwriting OPTFLAGS here all the time to -Os. You'll have to
>> >> use the following for it to work:
>> >> OPTFLAGS ?= -Os
>> >>
>> >
>> > that's not posix, but a bsd (and gnu) make extension though
>> >
>>
>> Ah. But anyway, the original wont work for specifying it in the command line...
>
> http://www.opengroup.org/onlinepubs/009695399/utilities/make.html:
>
> [...]
> -e
>    Cause environment variables, including those with null values, to override macro assignments within makefiles.
> [...]
>
>> --
>> Daniel
>>
>
> Regards,
> Matthias-Christian
>
>

Ah, always learning something new. :)

--
Daniel
Received on Thu Apr 09 2009 - 05:16:29 UTC

This archive was generated by hypermail 2.2.0 : Thu Apr 09 2009 - 05:24:04 UTC