[CRIU] [PATCH] build/nmk: add per-target LDFLAGS
Cyrill Gorcunov
gorcunov at gmail.com
Sat Feb 20 04:42:04 PST 2016
On Sat, Feb 20, 2016 at 03:34:54PM +0300, Dmitry Safonov wrote:
> #
> # Accumulate common flags.
> define nmk-ccflags
> - $(CFLAGS) $(ccflags-y) $(CFLAGS_$@)
> + $(CFLAGS) $(ccflags-y) $($@-ccflags-y)
> endef
say
obj-y += somefile.o
CFLAGS_somefile.o += -Wall
this is more natural than
somefile.o-ccflags-y += Wall
no?
>
> define nmk-asflags
> - $(CFLAGS) $(ASFLAGS) $(asflags-y) $(ASFLAGS_$@)
> + $(CFLAGS) $(ASFLAGS) $(asflags-y) $($@-asflags-y)
> endef
>
> --
> Regards,
> Dmitry Safonov
>
Cyrill
More information about the CRIU
mailing list