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