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:
parent
68ab0ad58b
commit
611c27db2a
|
@ -53,7 +53,8 @@ (define* (configure #:key outputs configure-flags build-type
|
|||
;; * <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)
|
||||
|
|
Loading…
Reference in a new issue