Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - static linking problem: -Bstatic in LIB variable: (7 Items)
   
static linking problem: -Bstatic in LIB variable  
Re: static linking problem: -Bstatic in LIB variable  
Hi, Marc,

Yes, this is a known problem that was thought once already to have been
resolved.  I have re-opened the bug in our internal database and will
take a look (I can reproduce the symptoms).

BTW, which IDE release are you using?

I'll report back when I have an update.

Cheers,

Christian

Re: static linking problem: -Bstatic in LIB variable  
Hi, Marc,

Sorry, I spoke too soon:  this should work fine, at least in the IDE 4.6
(SDP 6.4.1).  The LIBS looks like it shouldn't work, but
the .qnx_internal.mk makefile that is included by the common.mk has some
magic that causes the correct linker command-line to be generated.

Which IDE version are you using?

Cheers,

Christian

Re: static linking problem: -Bstatic in LIB variable  
Thanks Christian!

Our IDE says, Version: 4.6.0
Build id: I20090510

Greetings,
 Marc
Re: static linking problem: -Bstatic in LIB variable  
Hi, Marc,

Hmm ... it should work for you, then.  I have no trouble.

Try the attached projects, to see what the result is for you.  See also
how they compare to your projects.  A couple of points to note:

  - the "zz" project builds is configured to build both dynamic (*.so)
and
    static (*.a) libraries.  Without that, the option to change the
linker
    option in the "yy" project doesn't exist
  - I am using the option to link with the appropriate variant (which
    results in the caret ("^") in the LIBS macro which is yet more
    .qnx_internal.mk magic)

For me, the correct linker command-line is generated at build time.

If you can share a small example that demonstrates your problem, I could
have a look at that.

HTH,

Christian


Attachment: Compressed file greet.zip 8 KB
Re: static linking problem: -Bstatic in LIB variable  
Thanks Christian... will try...

the problem seems to be that the include for qnx_internal.mk is vanishing sporadically... of course this in turn makes 
all the "magic" vanish.... It seems the GUI/UI is modifying the file and omits the qnx_internal.mk include...
Re: static linking problem: -Bstatic in LIB variable  
Hi, Marc,

Yes, that certainly would explain it, and would be its own bug.  If you
happen to discover what steps precede this vanishing act, please do post
details!  It must be fixed.

Cheers,

Christian


On Fri, 2009-10-16 at 09:41 -0400, Marc Roessler wrote:

> Thanks Christian... will try...
> 
> the problem seems to be that the include for qnx_internal.mk is vanishing sporadically... of course this in turn makes
 all the "magic" vanish.... It seems the GUI/UI is modifying the file and omits the qnx_internal.mk include...
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post40110
> 


________________________________________________________________________

Christian W. Damus
Software Developer, IDE Team
QNX Software Systems