diff options
author | Ludovic Courtès <ludo@gnu.org> | 2015-04-03 22:27:45 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2015-04-03 22:28:06 +0200 |
commit | 9bab6bea86e83c1aae355a7654263a87f0a4c130 (patch) | |
tree | a1ec3b356d8e07f46f67dfc91ec8404e6ac5a6c1 /gnu/packages/base.scm | |
parent | 8fdd410160acc717c97f9c8c8d910c71bcf9646a (diff) |
gnu: ld-wrapper: Use a hard-coded self-reference instead of $0.
* gnu/packages/ld-wrapper.scm: Use @SELF@ instead of $0. This is so
that the .go file is found even when the wrapper is invoked via a
symlink to it.
* gnu/packages/base.scm (make-ld-wrapper): Substitute @SELF@.
Diffstat (limited to 'gnu/packages/base.scm')
-rw-r--r-- | gnu/packages/base.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index 9eb90dca5b..c935784663 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -393,6 +393,8 @@ wrapper uses GUILE and BASH." (mkdir-p bin) (copy-file (assoc-ref %build-inputs "wrapper") ld) (substitute* ld + (("@SELF@") + ld) (("@GUILE@") (string-append (assoc-ref %build-inputs "guile") "/bin/guile")) |