T
Tobias Bergmann
Hi,
I work on a big project that consists of many small linux C++ CGI
binaries. This actually works fine but our problem is that we use many
..so libraries and we need to compile it separately for many different
linux distributions and versions and even architectures. I actually want
one compiled version that works everywhere.
One idea is to store all used .so libraries of the compiling system in a
seperate directory, install that directory on other systems and use
rpath
(http://godi.ocaml-programming.de/project-doc/finding_libraries.txt) to
make ld to search in this directory first.
This works fine with a few libraries but I could not manage to do this
for our big list of libraries e.g. ImageMagick that uses 10 more other
libraries.
Another idea is to compile all libraries static into one big shared
library and just link this shared one. Seems like the linker / ld can
not do such a mix of static and shared? Compiling all small CGI binaries
static would take too much disc space I think.
Any other ideas / suggestions?
Thanks
I work on a big project that consists of many small linux C++ CGI
binaries. This actually works fine but our problem is that we use many
..so libraries and we need to compile it separately for many different
linux distributions and versions and even architectures. I actually want
one compiled version that works everywhere.
One idea is to store all used .so libraries of the compiling system in a
seperate directory, install that directory on other systems and use
rpath
(http://godi.ocaml-programming.de/project-doc/finding_libraries.txt) to
make ld to search in this directory first.
This works fine with a few libraries but I could not manage to do this
for our big list of libraries e.g. ImageMagick that uses 10 more other
libraries.
Another idea is to compile all libraries static into one big shared
library and just link this shared one. Seems like the linker / ld can
not do such a mix of static and shared? Compiling all small CGI binaries
static would take too much disc space I think.
Any other ideas / suggestions?
Thanks