[CRIU] [PATCH] build/nmk: add per-target LDFLAGS
Dmitry Safonov
dsafonov at virtuozzo.com
Sat Feb 20 04:01:40 PST 2016
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?
>
> Cc: Cyrill Gorcunov <gorcunov at openvz.org>
> Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
> ---
> scripts/nmk/scripts/build.mk | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/nmk/scripts/build.mk b/scripts/nmk/scripts/build.mk
> index d976390..f7daf52 100644
> --- a/scripts/nmk/scripts/build.mk
> +++ b/scripts/nmk/scripts/build.mk
> @@ -43,7 +43,9 @@ builtin-name := $(strip $(builtin-name))
>
> #
> # Link flags.
> -ld_flags := $(strip $(LDFLAGS) $(ldflags-y))
> +define ld_flags
> +$(strip $(LDFLAGS) $(ldflags-y) $(LDFLAGS_$@))
> +endef
>
> #
> # Prepare targets.
--
Regards,
Dmitry Safonov
More information about the CRIU
mailing list