/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/4.5.4/../../../../lib64/libosgText.a(String.o): relocation R_X86_64_32S against `.rodata' can not be used when making a shared object; recompile with -fPIC
Created attachment 332874 [details] emerge --info
Created attachment 332876 [details] build log
Created attachment 332878 [details] emerge -p
I have the same problem. After I rebuild dev-games/openscenegraph with -static-libs USE flag, it would build for me. Does that help you as well? Most of the packages I see build both shared and static libraries with "static-libs" set, and this was a surprise to me.
Isn't static-libs disabled by default?
I believe you are correct. I had put that flag in /etc/portage/make.conf USE when I was creating a static LVM2 for my initramfs.
it should always be building the dynamic libraries. Does it not build dynamic when static-libs is set?
with =dev-games/openscenegraph-3.0.1 +static-libs, I had no dynamic libraries. Without static libs, I get: # ls -l /usr/lib/libosg* lrwxrwxrwx 1 root root 12 Feb 4 03:17 /usr/lib/libosg.so -> libosg.so.80 -rwxr-xr-x 1 root root 3040128 Feb 4 03:16 /usr/lib/libosg.so.3.0.1 lrwxrwxrwx 1 root root 15 Feb 4 03:17 /usr/lib/libosg.so.80 -> libosg.so.3.0.1 [and many more] With static-libs: # USE="static-libs" emerge -av dev-games/openscenegraph # ls -l /usr/lib/libosg* -rw-r--r-- 1 root root 7191806 Feb 5 02:49 /usr/lib/libosg.a Could it be something specific to this host? I have build logs if they would be useful.
(In reply to comment #7) > it should always be building the dynamic libraries. Does it not build > dynamic when static-libs is set? It doesn't. CMake (as opposed to libtool) requires special handling in order to create both types of libraries (essentially you would define two targets). Here in OSG, there's just switch between static vs dynamic. Therefore I think we should remove static-libs USE flag entirely as I don't feel like explicitly running phase functions twice just because.
static-libs gone for OSG. Also removed related pkg_postinst message, instructing to rebuild simgear after emerging OSG :P