c++ - How do I compile gnu libstdc++.a with PIC? -


I am trying to compile a shared library for those systems that do not have any libstdc ++ Is enough to run, which means I need a static link libstdc ++ in the library. I am trying to link directly to LIBSTDC ++. ( -Wl, -Bastatic -L / path / to / lib64 -lstdc ++ ), but I think my LibStDC ++ A PIC was not connected to:

  / usr / bin / ld: lib64 / libstdc ++. A (compatibility.o): for transfer __cxxabiv1 `against typeinfo R_X86_64_32 :: __ compulsion_translation 'can not be used during the making of shared object; -fPIC recompiled with lib64 / libstdc ++: A: The symbol could not be read: bad value   

I tried to recompiling CFLAG = with GCC = "- FPIC" and CFFLAS = "- FPIC", but not

The idea is to pass Side-pic option to configure . GCC Builds is a very complex animal with many stages, so just one CFLAGS variable can not work as intended.

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -