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

Dmitry Safonov dsafonov at virtuozzo.com
Sat Feb 20 04:25:34 PST 2016


On 02/20/2016 03:21 PM, Cyrill Gorcunov wrote:
> On Sat, Feb 20, 2016 at 03:01:40PM +0300, Dmitry Safonov wrote:
>> On 02/20/2016 02:49 PM, Dmitry Safonov wrote:
>>> Let there be LDFLAGS_$@ similar to CFLAGS_$@, ASFLAGS_$@.
>>> I need them for passing -m elf_i386 to build 32-bit syscalls/pie on
>>> 64-bit machine.
>> Oh, drop it, there are *-ldflags-y.
>> Anyway, may be we'll have some standard form of $@-flags?
> *-ldflags-y came from linux build engine, which has no LDFLAGS_*
> if I remember correctly. Please check (see scripts/Kbuild*|Makefile*
> in kernel source tree). Actually, you know I would prefer to not
> define new vars if possible.
I thought maybe rename CFLAGS_$@ and ASFLAGS_$@ to
$@-cflags-y $@-asflags-y. But if you want, we leave it as is.

-- 
Regards,
Dmitry Safonov



More information about the CRIU mailing list