build-system/meson: Don't override LDFLAGS if already set.
* guix/build/meson-build-system.scm (configure): Test for LDFLAGS before
adding ours.
(cherry picked from commit 611c27db2a
)
master
parent
f6a6a050ea
commit
538d6d025c
|
@ -53,7 +53,8 @@
|
||||||
;; * <https://github.com/mesonbuild/meson/issues/314>
|
;; * <https://github.com/mesonbuild/meson/issues/314>
|
||||||
;; * <https://github.com/mesonbuild/meson/issues/3038>
|
;; * <https://github.com/mesonbuild/meson/issues/3038>
|
||||||
;; * <https://github.com/NixOS/nixpkgs/issues/31222>
|
;; * <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)
|
(mkdir build-dir)
|
||||||
(chdir build-dir)
|
(chdir build-dir)
|
||||||
|
|
Reference in New Issue