summary refs log tree commit diff
path: root/gnu/packages/ld-wrapper.in
AgeCommit message (Collapse)Author
2024-08-31gnu: ld-wrapper: Also unset GUILE_LOAD_PATH.Maxim Cournoyer
The following problem was discovered while attempting to configure Guix to use a locally built Guile tree, via its meta/uninstalled-env script, which would attempt to use the newer Guile source files and fail with: Pre-boot error; key: unbound-variable, args: (#f "Unbound variable: ~S" (error) #f)collect2: fatal error: ld terminated with signal 6 [Aborted] With the following change, a Guix user may now configure their build to use a locally built Guile with e.g.: ~/src/guile/meta/uninstalled-env ./configure --localstatedir=/var \ --sysconfdir=/etc * gnu/packages/ld-wrapper.in: Unset GUILE_LOAD_PATH. Also unset GUILE_SYSTEM_PATH, for symmetry. Streamline exec call, using the now fixed '-l' option. (ld-wrapper): Fix args being a nested list, and strip its arg0. Series-to: 69396@debbugs.gnu.org Series-postfix: core-updates Series-version: 2 Series-changes: 2 - Revert to load-compiled scheme to load ld.go - Refine comment Change-Id: Iaaa721019f3646d851202bb018214ec9fcc04fd4
2020-09-25gnu: ld-wrapper: Unset 'GUILE_SYSTEM_COMPILED_PATH'.Ludovic Courtès
'GUILE_SYSTEM_COMPILED_PATH' is set by guile-bootstrap@2.0. Unsetting it ensures it does not interfere. * gnu/packages/ld-wrapper.in: Unset GUILE_SYSTEM_COMPILED_PATH.
2020-03-05gnu: ld-wrapper: Add support for quoted arguments in response files.Marius Bakke
* gnu/packages/ld-wrapper.in (expand-arguments): Add TOKENIZE procedure, and use that to parse the response file.
2018-03-29ld-wrapper: Allow linking with non-store libraries by default.Ludovic Courtès
This was suggested on several occasions, notably <https://bugs.gnu.org/24544>. * gnu/packages/ld-wrapper.in (%allow-impurities?): Default to #t and parse the value of 'GUIX_LD_WRAPPER_ALLOW_IMPURITIES'. * guix/build/gnu-build-system.scm (set-paths): Set 'GUIX_LD_WRAPPER_ALLOW_IMPURITIES'.
2018-03-29ld-wrapper: Don't talk about "impure library".Ludovic Courtès
* gnu/packages/ld-wrapper.in (rpath-arguments): Clarify message instead of saying "impure library".
2018-03-29ld-wrapper: Make sure debugging output goes through.Ludovic Courtès
* gnu/packages/ld-wrapper.in (ld-wrapper): Add call to 'force-output'.
2017-05-25ld-wrapper: Read arguments from "response files".Ludovic Courtès
Fixes <http://bugs.gnu.org/25882>. Reported by Federico Beffa <beffa@fbengineering.ch>. * gnu/packages/ld-wrapper.in (expand-arguments): New procedure. (ld-wrapper): Use it.
2016-04-06ld-wrapper: Unset 'GUILE_LOAD_COMPILED_PATH'.Ludovic Courtès
* gnu/packages/ld-wrapper.in: Unset 'GUILE_LOAD_COMPILED_PATH'.
2015-11-28ld-wrapper: Compute the library search path globally.Ludovic Courtès
Fixes <http://bugs.gnu.org/21941>. * gnu/packages/ld-wrapper.in (library-search-path): New procedure. (library-files-linked): Add 'library-path' parameter. Use it. Do not thread it in 'fold'. (ld-wrapper): Add call to 'library-search-path' and pass the result to 'library-files-linked'. When debugging, print the value of PATH.
2015-06-14ld-wrapper: Ignore .so files specified after "-plugin" for RUNPATH purposes.Ludovic Courtès
Reported by Mark H Weaver at <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20102#58>. * gnu/packages/ld-wrapper.in (library-files-linked): Handle "-plugin" similarly to "-dynamic-linker".
2015-04-21gnu: ld-wrapper: Ignore the .so argument following '-dynamic-linker'.Ludovic Courtès
Reported at <http://bugs.gnu.org/20102>. * gnu/packages/ld-wrapper.in (library-files-linked): Rename 'path+files' to 'path+files+args'. Thread the reverse list of previous arguments. Add case for when the previous argument is "-dynamic-linker".
2015-04-21gnu: ld-wrapper: Add debugging info.Ludovic Courtès
* gnu/packages/ld-wrapper.in (ld-wrapper): Add "libraries linked" debugging statement.
2015-04-21gnu: Rename ld-wrapper2 to ld-wrapper.Ludovic Courtès
* gnu/packages/ld-wrapper2.in: Rename to... * gnu/packages/ld-wrapper.in: ... this. * gnu-system.am (MISC_DISTRO_FILES): Remove ld-wrapper2.in. * gnu/packages/commencement.scm (fixed-ld-wrapper): Remove. (gcc-toolchain): Restore pre-77db91ad inputs.
2015-04-07gnu: Change ld-wrapper extension from .scm to .in.Ludovic Courtès
* gnu/packages/ld-wrapper.scm: Rename to... * gnu/packages/ld-wrapper.in: ... this. * gnu/packages/base.scm (make-ld-wrapper): Adjust "wrapper" input accordingly. * gnu-system.am (GNU_SYSTEM_MODULES): Remove ld-wrapper.scm. (MISC_DISTRO_FILES): New variable.