Bug 382512 - Support for library grouping in managed builder
Summary: Support for library grouping in managed builder
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: Next   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-13 11:36 EDT by Phil Mason CLA
Modified: 2020-09-04 15:23 EDT (History)
1 user (show)

See Also:


Attachments
Patch adding a checkbox which automates dealing with circular references (8.12 KB, patch)
2012-06-13 11:40 EDT, Phil Mason CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Mason CLA 2012-06-13 11:36:48 EDT
Build Identifier: Version: 3.8.0 Build id: I20120525-1400

FSF linker supports command-line options "-(" and "-)" (or the equivalent "--start-group" and "--end-group") around a set of link libraries, to allow resolution of circular dependencies between those libraries. So the link line could look something like:

ld ... -o foo --start-group -lfirst -lsecond --end-group

to support resolving a circular references between library first and second.

Currently the only way I can find to achieve this is to add it to the "command line pattern" by hand. It would be nice if you could tell the managed builder that there are circular libraries and it inserts the options for you.

Reproducible: Always
Comment 1 Phil Mason CLA 2012-06-13 11:40:56 EDT
Created attachment 217293 [details]
Patch adding a checkbox which automates dealing with circular references