diff options
author | Marius Bakke <mbakke@fastmail.com> | 2018-04-01 12:37:15 +0200 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2018-04-02 02:22:23 +0200 |
commit | 611c27db2aec8c2f72bc0c1e5c7d126dc95b39b2 (patch) | |
tree | 2233df3c7089e8c5b25507ad71906665aa29f3c0 /guix/build | |
parent | 68ab0ad58b37ce24f9e0b6f1864d58066308230d (diff) | |
download | gnu-guix-611c27db2aec8c2f72bc0c1e5c7d126dc95b39b2.tar gnu-guix-611c27db2aec8c2f72bc0c1e5c7d126dc95b39b2.tar.gz |
build-system/meson: Don't override LDFLAGS if already set.
* guix/build/meson-build-system.scm (configure): Test for LDFLAGS before
adding ours.
Diffstat (limited to 'guix/build')
-rw-r--r-- | guix/build/meson-build-system.scm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/guix/build/meson-build-system.scm b/guix/build/meson-build-system.scm index e8cb5440eb..e7690a4c37 100644 --- a/guix/build/meson-build-system.scm +++ b/guix/build/meson-build-system.scm @@ -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) |