From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46115) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1evN8Z-0001QY-RD for guix-patches@gnu.org; Mon, 12 Mar 2018 09:05:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1evN8Q-0000oi-D9 for guix-patches@gnu.org; Mon, 12 Mar 2018 09:05:11 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:48236) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1evN8Q-0000oR-9u for guix-patches@gnu.org; Mon, 12 Mar 2018 09:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1evN8Q-0005cB-1V for guix-patches@gnu.org; Mon, 12 Mar 2018 09:05:02 -0400 Subject: [bug#30761] [PATCH staging 4/9] build-system/meson: Add the output directory to RUNPATH. Resent-Message-ID: From: Marius Bakke In-Reply-To: <87ina2tfon.fsf@gnu.org> References: <20180309181108.22888-1-mbakke@fastmail.com> <20180309181108.22888-4-mbakke@fastmail.com> <87ina2tfon.fsf@gnu.org> Date: Mon, 12 Mar 2018 14:04:24 +0100 Message-ID: <873715jvhj.fsf@fastmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 30761@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > Marius Bakke skribis: > >> * guix/build/meson-build-system.scm (configure): Set LDFLAGS before invo= king meson. > > [...] > >> + (setenv "LDFLAGS" (string-append "-Wl,-rpath=3D" out "/lib")) > > Can we pass them as an argument to =E2=80=98meson=E2=80=99 somehow instea= d of defining a > global variable? > > (For example Autoconf-generated configure scripts can read variable > definitions passed as arguments: > > ./configure LDFLAGS=3Dfoo > > That way we don=E2=80=99t have to define the variable globally, which cou= ld have > unintended effects.) > > If not, that=E2=80=99s 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. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAlqmetgACgkQoqBt8qM6 VPr3nggAkUcIrlL9vWjrxXBaxiIY5zTriGbKAdqgZ9GU5CRgspHRAxkAJkxHl67W WmbzJ/je9IX2ggrzmTXMDa7ddGPPKkE9wlFisq6V8eChYKlJHGpy62fQiwYiVzuA QyYQQUfQqmEMjP3jS+0pF5wQPRQozUIKM8VUgemu6VTT690HlZnd99GfjlBviGZW JwIEa5Yo8s03ZpEeUK0RzCDTN8POhIeT2ryWPXTmquFChJ7SwYWO7/9iDAU2dTKJ e4WzRHI0Wn99BKIuGzRmpM5u71WozZ+AHuzLuUVRlvvzXp/k6A3iekeEYFf0/eEy YBNa0Q5W0NXyNnq1n8lXsIjbkQhKDw== =xUbL -----END PGP SIGNATURE----- --=-=-=--