Andy Ross writes:
> Hrm... libYASim.a is a static library.  It doesn't (well, shouldn't)
> have dependency information in it.  Some of the files reference the
> rest of FlightGear, but none are linked into the yasim executable.
> 
> Are you sure about this error?  It sounds like the Irix linker is
> getting itself into a weird mode.  The whole point of a static library
> is that you put a bunch of code into it without regard for who needs
> what and sort it all out at link time.  What does your ar command look
> like to link the library?  I'm wondering if this is a bug in autoconf
> or libtool on Irix.
> 
> I mostly copied this stuff from the Input directory, and don't see any
> obvious differences.  The libInput files also reference the rest of
> FlightGear, SimGear, plib and GL.  I'm wondering why don't you get the
> same errors with js_demo and fgjs?
> 
> Certainly using only object files will work to remove the libYASim
> dependencies.  But you'll also need the sgmisc, sgdebug and sgxml
> libraries.  If these also have dependencies on plib or GL, then you're
> still going to have the same problem with pulling in unrelated
> libraries.

Andy,

It's my understanding that the Irix linker isn't as smart as the gnu
linker when it comes to figuring out what is needed or not.

For instance pretend you have a library with one function that
references something in OpenGL land.  If you link in that library
under Irix, you must also link with libGL because something in that
lib references it, even if it's never used by your application.

That means we can end up linking in a bunch of odd seemly unrelated
stuff in order to make the Irix linker happy.  That's not 100%
pleasant, but I guess I can think of worse things to have done to me.

Regards,

Curt.
-- 
Curtis Olson   IVLab / HumanFIRST Program       FlightGear Project
Twin Cities    [EMAIL PROTECTED]                  [EMAIL PROTECTED]
Minnesota      http://www.menet.umn.edu/~curt   http://www.flightgear.org

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to