Discussion:
[xplc-general] [ xplc-Patches-3135553 ] build failure with --as-needed
SourceForge.net
2010-12-12 04:15:46 UTC
Permalink
Patches item #3135553, was opened at 2010-12-12 05:15
Message generated for change (Tracker Item Submitted) made by sistpoty
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=301814&aid=3135553&group_id=1814

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Stefan Potyra (sistpoty)
Assigned to: Nobody/Anonymous (nobody)
Summary: build failure with --as-needed

Initial Comment:
Hi,

attached is a patch which solves a build failure with the linker flag --as-needed. Some background: --as-needed forces the order of libraries, which means that a shared object using symbols must occur on as argument to the linker in front of the file providing the symbol definitions. For xplc it's -ldl that is added in front of libxplc.so.

In the attached patch, I've updated config/rules.mk to allow to specify libraries in <name>_LDADD (automake uses the same convention), and have updated xplc/vars.mk to use libxplc_LDADD in case the libdl is to be used. Would be cool if you could integrate that patch. If there's s.th. wrong with the approach, please let me know.

Cheers,
Stefan.

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=301814&aid=3135553&group_id=1814
Loading...