[Bug 30791] doesn't build if LD_LIBRARY_PATH contains an older version

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Oct 14 12:20:58 CEST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=30791

Simon McVittie <simon.mcvittie at collabora.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|doesn't build with          |doesn't build if
                   |--enable-gtk-doc            |LD_LIBRARY_PATH contains an
                   |                            |older version
             Status|NEW                         |ASSIGNED
  Status Whiteboard|                            |review+ with further
                   |                            |testing
          Component|tp-doc                      |tp-glib
         AssignedTo|telepathy-bugs at lists.freede |danielle.madeley at collabora.
                   |sktop.org                   |co.uk

--- Comment #8 from Simon McVittie <simon.mcvittie at collabora.co.uk> 2010-10-14 03:20:57 PDT ---
You can make Debian/Ubuntu emulate Fedora's linker by configuring with
"./configure [...] LDFLAGS=-Wl,--no-add-needed" (they just changed a default).

The strict ordering requirement comes from platforms with only static libraries
or with a rubbish dynamic linker, but libtool is meant to take care of that for
us, and I don't think anyone actually uses Telepathy on AIX anyway.

The order we normally use is stolen from gstreamer,
<http://cgit.freedesktop.org/gstreamer/gstreamer/tree/docs/random/moving-plugins#n72>:

> - should list libs and cflags in stack order, with lowest in the stack first
>     (so one can link against highest in the stack somewhere else without
>      picking up everything from the somewhere else)

For CFLAGS we've had to adjust that to "things from the same source tree are
first, then external things with the lowest in the stack first". I think we
might have to do the same with LDFLAGS.

Danni, your patch looks fine, if a clean build with LDFLAGS=-Wl,--no-add-needed
works. If you test with that and it works, feel free to merge; I might
cherry-pick it myself if I get there first.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the telepathy-bugs mailing list