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 ++. ( I tried to recompiling CFLAG = with GCC = "- FPIC" and CFFLAS = "- FPIC", but not The idea is to pass -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
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
Post a Comment