Mixing Shared and Dynamic Libraries
I have been working on a c++ program that consists of several source files. I am trying to compile them each into objects and then links them afterwards. This is working just fine except I would like the one object to staically include the libraries that it uses. I have ....
class.cc conf.cc html.cc libsql.cc main.cc sql.cc sql.cc is the only object that requires mysql and mysql++. Although mysql may be common, mysql++ is not as common. I would like to be able to produce a final binary that does not need the dynamic libraries that relate to -lsqlplus and -lmysqlclient. This will make it easier for me to use the program on multiple machines without having to install additional libs. This is what the section of my makefile looks like. I tried going over the libtool documentation but I seem to be missing something. I am fresh out of ideas so maybe someone can help me. Code:
CXX = /usr/bin/c++ |
Solved
Well I figured it out, but if anyone has any comments or alternative ways to handle this, I am interested in hearing them
Code:
CXX = /usr/bin/c++ |
All times are GMT -5. The time now is 08:33 PM. |