Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-core-dev] Problem with environment variables and link paths during build


This is the platform core mailing list, which has nothing to do with CDT. I suggest trying the eclipse.tools.cdt newsgroup.




Nayna Jain <naynjain@xxxxxxxxxx>
Sent by: platform-core-dev-bounces@xxxxxxxxxxx

06/30/2009 05:06 AM

Please respond to
"Eclipse Platform Core component developers list."        <platform-core-dev@xxxxxxxxxxx>

To
platform-core-dev@xxxxxxxxxxx
cc
Subject
[platform-core-dev] Problem with environment variables and link        paths during build





Hi,

I am developing on Eclipse Europa 3.3 and CDT 4.0

We are extending CDT Functionalities and doing some customizations.

We have a plugin which extends the buildDefinitions providing new project
type and project nature and defining our own tool chain.

To integrate this toolchain we have defined our own Configuration Level
Environment Provider.

We are extending for this reason IBuildEnvironmentVariable which extends
IEnvironmentVariable.

For operation we use the value : IBuildEnviornmentVariable.ENVVAR_REPLACE.
For delimeter we use the value : null.

However I realized that for default OS set enviornment variables , if we
invoke Eclipse from this it works fine.

Now if we set few environment variables before invoking Eclipse and then
invoke it gets complete new and added list of environment variables, but in
this case it is failing at linking. The link paths got screwed up and is
showing : in place of -L.

For Eg :

ppcnf-linux-g++:
:/home/nayna/workspace/runtime-EclipseApplication/Test1/export/abc/xyz/lib:/esw/test/Builds/btest/export/abc/xyz/lib:
No such file or directory


I tried the same thing with delimeter="" ; or delimeter=" ";
In this case it works fine and the extra command doesn't appear. I was
suprised that it worked fine for some random value also like delimeter="@".

I would like to know the exact purpose of delimeter and where is it used ?
On what basis should we decide its value ?

I tried going through CDT code using debugger but couldn't understand
enough . Also from the Build Macros and BuildEnvironmentVariables I
couldn't get much information.

Also , I would like to know how  and where does this linker paths are
constructed

So, please let me know if someone can help.

Thanks & Regards,
Nayna Jain

_______________________________________________
platform-core-dev mailing list
platform-core-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-core-dev


Back to the top