Umm, no, it doesn't matter how many libs you have, you would do something like:

LIBS = -lliba -llibb -llibc -llibd -llibe .....

then in your link line, just use $(LIBS) $(LIBS)

So then if libb needs something from liba, the first time around it
will be missed, but it will be resolved the second time liba is
mentioned. This is a pretty old technique from before the time shared
libs were commonly available.



On 11/9/06, Jan Ciger <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

c sklu wrote:
> You're right that it does make the link time longer and is not the
> optimal situation, but I don't/didn't always have control (source
> code) of the libraries I'm linking. I don't do this anymore since I
> mostly create/use only dynamic libraries now. But this technique isn't
> totally useless since it does free you from having to determine
> dependencies...

Well, not really - what if you have more than two libs? E.g. three or
four? Are you going to list all possible permutations? That would be
quite a mess :(

Jan

- --

Jan Ciger
GPG public key: http://www.keyserver.net/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFFU0uzn11XseNj94gRAvJCAKDBBClEnCWfasz69yQy1Ju0VfsxWgCdEtlx
gJPR94ta5+b1JHPXY28UhIQ=
=x0NO
-----END PGP SIGNATURE-----
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to