I have a project set up with autotools to build a C++ library including Python bindings with Boost.Python. I have a binary of Boost.Python on my system that I want to link against:
/usr/lib/libboost_python-py27.so.1.49.0
There is no corresponding .la file so I thought I could add the full path to the library to the libtool command similar to this:
bash ./libtool --mode=link g++ -rpath /usr/local/lib src/o1.lo src/o2.lo ... \
/usr/lib/libboost_python-py27.so.1.49.0 -o libNSM.la
But libtool is discarding the /usr/lib/libboost_python-py27.so.1.49.0 from the issued g++ command. If I run g++ by hand it works fine.
How can I make libtool use a native shared library or what would be the proper way to handle such a situation. I definitely want users to be able to use their existing boost binaries.