[CRIU] [PATCH] build/nmk: add per-target LDFLAGS

Cyrill Gorcunov gorcunov at gmail.com
Sat Feb 20 04:56:26 PST 2016


On Sat, Feb 20, 2016 at 03:53:32PM +0300, Dmitry Safonov wrote:
> On 02/20/2016 03:42 PM, Cyrill Gorcunov wrote:
> >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?
> Hehe, you win here, but we'll still have
> somefile.o-ldflags-y += -lm

I can accept this ;) Send the patch.


More information about the CRIU mailing list