Hello, I link 3 libraries with libtool. The first one is linked with hdf lib that is in system (/usr/lib), the second one is linked with vtk lib that is not in system ($VTKHOME) and the third one is linked with the 2 previous libs.
The problem is that there is another vtlk lib in system (/usr/lib) and libtool adds an -L/usr/lib when adding hdf dependency so my third lib is linked with the two vtk libs (in system and in VTKHOME). I have not found a way to handle this situation. What would be the right way ? Here is a simplified script of my link: cd src/p1 /bin/sh ../../libtool --tag=CXX --mode=link g++ -o libhello.la -rpath /local/cchris/pkg/libtool/test22/myinstall/lib hello.lo -lhdf5 cd ../p2 /bin/sh ../../libtool --tag=CXX --mode=link g++ -o libprog.la -rpath /local/cchris/pkg/libtool/test22/myinstall/lib prog.lo -L/local/cchris/pkg/vtk/install/lib/vtk-5.6 -lvtkCommon cd ../p3 /bin/sh ../../libtool --tag=CXX --mode=link g++ -o libviewer.la -rpath /local/cchris/pkg/libtool/test22/myinstall/lib viewer.lo ../p1/libhello.la ../p2/libprog.la Regards Christian Caremoli
Ce message et toutes les pièces jointes (ci-après le 'Message') sont établis à l'intention exclusive des destinataires et les informations qui y figurent sont strictement confidentielles. Toute utilisation de ce Message non conforme à sa destination, toute diffusion ou toute publication totale ou partielle, est interdite sauf autorisation expresse. Si vous n'êtes pas le destinataire de ce Message, il vous est interdit de le copier, de le faire suivre, de le divulguer ou d'en utiliser tout ou partie. Si vous avez reçu ce Message par erreur, merci de le supprimer de votre système, ainsi que toutes ses copies, et de n'en garder aucune trace sur quelque support que ce soit. Nous vous remercions également d'en avertir immédiatement l'expéditeur par retour du message. Il est impossible de garantir que les communications par messagerie électronique arrivent en temps utile, sont sécurisées ou dénuées de toute erreur ou virus. ____________________________________________________ This message and any attachments (the 'Message') are intended solely for the addressees. The information contained in this Message is confidential. Any use of information contained in this Message not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. If you are not the addressee, you may not copy, forward, disclose or use any part of it. If you have received this message in error, please delete it and all copies from your system and notify the sender immediately by return message. E-mail communication cannot be guaranteed to be timely secure, error or virus-free.
_______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool