Add new comment

libraw in a DSO plug-in

Happy new year to all,

The Oyranos project has some plugins, which work as shared libraries. These libraries need to link in libraw.a, in order to use the LibRaw functionality for conversion and ICC profile assignment.

However on 64-bit machines the gcc compiler says:
linux/bin/ld: /usr/lib64/libraw.a(lib_libraw_a-libraw_cxx.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

The issue is nicely described here:
http://www.gentoo.org/proj/en/base/amd64/howtos/index.xml?part=1&chap=3

Ideally the gcc -fPIC option would be added on 64-bit builds during configure.

Forums: