build-system/meson: Don't override LDFLAGS if already set.

* guix/build/meson-build-system.scm (configure): Test for LDFLAGS before
adding ours.
This commit is contained in:
Marius Bakke 2018-04-01 12:37:15 +02:00
parent 68ab0ad58b
commit 611c27db2a
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 2 additions and 1 deletions

View File

@ -53,7 +53,8 @@
;; * <https://github.com/mesonbuild/meson/issues/314>
;; * <https://github.com/mesonbuild/meson/issues/3038>
;; * <https://github.com/NixOS/nixpkgs/issues/31222>
(setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib"))
(unless (getenv "LDFLAGS")
(setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib")))
(mkdir build-dir)
(chdir build-dir)