Date: Wed, 15 Aug 2012 16:31:44 +0400 From: Dmitry Sivachenko <demon@FreeBSD.org> To: gnome@freebsd.org Subject: libxml2.a and -fPIC Message-ID: <502B96B0.9090508@FreeBSD.org>
next in thread | raw e-mail | index | archive | help
Hello! I am writing some kind of shared library at work which uses libxml2. I want to link statically with it. When I try, I get the following error: /usr/bin/ld: /usr/local/lib/libxml2.a(error.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC If I add -fPIC to CFLAGS and recompile libxml2 port, this error disappears. Is it possible to make this change to port so libxml2.a is always built with -fPIC? Thanks!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?502B96B0.9090508>