Re: [Flightgear-devel] gnu linker question (don't optimize unused variables)

2010-04-16 Thread Torsten Dreyer
It's not optimizing the variable, it's optimizing the entire .o file out of the linkage, as nothing external is explicitly using any of the symbols in the .o. Ah - that explains a lot! No. Either build gnucap as a shared library or add some dummy references to symbols in the file(s) that

[Flightgear-devel] gnu linker question (don't optimize unused variables)

2010-04-15 Thread Torsten Dreyer
Hi, this is a question for the gnu linker geek: I am trying to add gnucap to FlightGear as posted before. It compiles cleanly and links fine, but there is one issue. Gnucap uses commands which are implemented in separate files. These commands get registered into a global command registry.

Re: [Flightgear-devel] gnu linker question (don't optimize unused variables)

2010-04-15 Thread Tim Moore
On Thu, Apr 15, 2010 at 10:59 PM, Torsten Dreyer tors...@t3r.de wrote: Hi, this is a question for the gnu linker geek: I am trying to add gnucap to FlightGear as posted before. It compiles cleanly and links fine, but there is one issue. Gnucap uses commands which are implemented in