This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 121308

Summary: avoid absolute paths in C++ auto-generated makefiles
Product: cnd Reporter: iluetkeb <iluetkeb>
Component: ProjectAssignee: issues@cnd <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description iluetkeb 2007-11-06 16:20:29 UTC
Currently, Makefiles generated by the C++ project support contain absolute paths in many cases. One such case is when a
library created in another project is referenced.  Even when I specify the location of the other project in a relative
way, this is still the case.  Naturally, this creates problems when developing in teams -- hardcoding the path to my
home-directory is not going to make my co-worker happy ;-)

I recognize that the linker requires absolute paths in many cases (e.g. for rpaths) but would suggest a method to look
up the required path at runtime, e.g. per NetBeans instance, similar to the way Java libraries are managed. For Java
projects, the generated build file simply contains a variable that is then overridden in my local NetBeans configuration.

In this regard, one cool way of approaching the problem might be through pkg-config support -- this would also enhance
the value of the current project configuration by supporting external pkg-config files.