Re: [dev] [PATCH][blind] alloca #include for BSDs
Quoth Yuri:
> You should also change your config.mk files to allow external optimization
> and other flags. For example:
>
> > CFLAGS = -std=c99 -Wall -pedantic -O2
>
> should be changed to
>
> > CFLAGS ?= -O2
>
> > CFLAGS += -std=c99 -Wall -pedantic -O2
>
> This way you can allow externally supplied optimization flags while still
> being able to add your own flags. Same with CPPFLAGS and LDFLAGS.
I believe the reason suckless projects stick to = rather than += or
?= is that they aren't POSIX / OSI standard. I don't think there's a
compelling reason to switch to your syntax, as distribution builders
or whoever can still easily see what the CFLAGS were and add to them
if they want or need to.
Nick
Received on Mon Jan 29 2018 - 11:05:51 CET
This archive was generated by hypermail 2.3.0
: Mon Jan 29 2018 - 11:12:22 CET