From 611c27db2aec8c2f72bc0c1e5c7d126dc95b39b2 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Sun, 1 Apr 2018 12:37:15 +0200 Subject: [PATCH] build-system/meson: Don't override LDFLAGS if already set. * guix/build/meson-build-system.scm (configure): Test for LDFLAGS before adding ours. --- guix/build/meson-build-system.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 @@ ;; * ;; * ;; * - (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)