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 - avoid absolute paths in C++ auto-generated makefiles
Summary: avoid absolute paths in C++ auto-generated makefiles
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-06 16:20 UTC by iluetkeb
Modified: 2014-04-14 14:31 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.