Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326844 - options passed to miscellaneous/linker flags should be allowed to be passed at the end of the link command
Summary: options passed to miscellaneous/linker flags should be allowed to be passed a...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: 8.0   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: 2010-10-02 15:07 EDT by charlls_quarra CLA
Modified: 2020-09-04 15:21 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description charlls_quarra CLA 2010-10-02 15:07:06 EDT
Build Identifier: 20100917-0705

build variables for linkage steps (like pkg-config --cflags..) can be passed to the compiler adding to properties->c++ build->settings->tool settings->c++ compiler(miscellaneous) and to 'other flags' textbox like ${MY_PKGCONFIG_VAR} (that will make it compile, but won't get so far as update the indexer, but thats another story). 
However, if one tries to do the same thing for the linkage step (adding to tool settings->c++ linker(miscellaneous) 'linker flags'), then any options in the build variable like -L and -l are placed at the beggining of the command (before the input .o files, for instance), and that will not work in general (compilers like gcc linker will only proceed to link options after the object source files)



Reproducible: Always

Steps to Reproduce:
1.add a build variable for a link step that includes -L or -l options
2.add the build variable to properties->c++ build->settings->tool settings->c++ linker(miscellaneous) 'linker flags
3.
Comment 1 charlls_quarra CLA 2010-10-02 16:27:12 EDT
added a new enhancement request for having the indexer see the included paths (https://bugs.eclipse.org/bugs/show_bug.cgi?id=326845)