all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#21941: ld-wrapper incorrectly computes library search path
@ 2015-11-17 16:43 Ludovic Courtès
  2015-11-28 21:12 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Ludovic Courtès @ 2015-11-17 16:43 UTC (permalink / raw)
  To: 21941

Currently ‘ld-wrapper’ builds the library search path as it encounters
-L flags and uses the current search path when it encounters a -l flag.

This is contrary to what ld actually does (info "(ld) Options"):

--8<---------------cut here---------------start------------->8---
`-L SEARCHDIR'
`--library-path=SEARCHDIR'
     […] All `-L' options apply to all `-l' options,
     regardless of the order in which the options appear.
--8<---------------cut here---------------end--------------->8---

This turns out to be fine when using GCC but manifests itself when using
Clang, because Clang passes the -L flags that correspond to
‘LIBRARY_PATH’ after the -l flags on the ‘ld’ command line.

Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#21941: ld-wrapper incorrectly computes library search path
  2015-11-17 16:43 bug#21941: ld-wrapper incorrectly computes library search path Ludovic Courtès
@ 2015-11-28 21:12 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2015-11-28 21:12 UTC (permalink / raw)
  To: 21941-done

ludo@gnu.org (Ludovic Courtès) skribis:

> Currently ‘ld-wrapper’ builds the library search path as it encounters
> -L flags and uses the current search path when it encounters a -l flag.
>
> This is contrary to what ld actually does (info "(ld) Options"):
>
> `-L SEARCHDIR'
> `--library-path=SEARCHDIR'
>      […] All `-L' options apply to all `-l' options,
>      regardless of the order in which the options appear.

Fixed in e946b609.

Ludo’.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-28 21:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-17 16:43 bug#21941: ld-wrapper incorrectly computes library search path Ludovic Courtès
2015-11-28 21:12 ` Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.