|
Boost-Build : |
Subject: [Boost-build] Static and dynamic linking linux/AIX
From: Meindert Oldenburger (meindert66_at_[hidden])
Date: 2011-09-08 07:32:44
Hello,
I have a library libgen it could be build in two different ways: static and
dynamic.
Now i have another library called liboracle11.so. This library needs libgen,
and i like to link this statically.
The problem is that libgen.a could not link against liboracle11.so because
the library is build as static lib and objects are NOT compiled with the
-fPIC flag.
.plan.o: relocation R_X86_64_32 against `a local symbol' can not be used
when making a shared object; recompile with -fPIC .plan.o: could not
read symbols: Bad value
Libgen is used in different tastes in ore source:
- libgen.so
- libgen.a
- libgen.a and <cflags>-fpic
Is there a solution to use the objects of the libgen.so for linking
against liboracle11.so ?
Regards,
Meindert
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk