[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#30761] [PATCH staging 4/9] build-system/meson: Add the output direc
From: |
Marius Bakke |
Subject: |
[bug#30761] [PATCH staging 4/9] build-system/meson: Add the output directory to RUNPATH. |
Date: |
Mon, 12 Mar 2018 14:04:24 +0100 |
User-agent: |
Notmuch/0.26 (https://notmuchmail.org) Emacs/25.3.1 (x86_64-pc-linux-gnu) |
Ludovic Courtès <address@hidden> writes:
> Marius Bakke <address@hidden> skribis:
>
>> * guix/build/meson-build-system.scm (configure): Set LDFLAGS before invoking
>> meson.
>
> [...]
>
>> + (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib"))
>
> Can we pass them as an argument to ‘meson’ somehow instead of defining a
> global variable?
>
> (For example Autoconf-generated configure scripts can read variable
> definitions passed as arguments:
>
> ./configure LDFLAGS=foo
>
> That way we don’t have to define the variable globally, which could have
> unintended effects.)
>
> If not, that’s fine.
Unfortunately, this is the only supported way of adding extra linker
flags and similar.
http://mesonbuild.com/howtox.html#set-extra-compiler-and-linker-flags-from-the-outside-when-eg-building-distro-packages
There are some open tickets about being able to specify environment in
build definitions, in which case we might be able to add them there.
But for now, this is the way to go.
signature.asc
Description: PGP signature
- [bug#30761] [PATCH staging 0/9] Meson fixes (and some updates), Marius Bakke, 2018/03/09
- [bug#30761] [PATCH staging 3/9] gnu: meson: Update to 0.45.0., Marius Bakke, 2018/03/09
- [bug#30761] [PATCH staging 8/9] gnu: libwacom: Update to 0.29., Marius Bakke, 2018/03/09
- [bug#30761] [PATCH staging 6/9] gnu: libinput: Update to 1.10.2., Marius Bakke, 2018/03/09
- [bug#30761] [PATCH staging 9/9] gnu: xf86-input-wacom: Update to 0.36.0., Marius Bakke, 2018/03/09