1

I'm trying to move to Developer Studio 12.5 and enable the C++11 options. My software links openssl using the Oracle provided library in /usr/sfw. This appears to depend on an older libgcc_s.so than the one now used for the C++ 11 STL. So I get the following:

CC -o binary -B direct -z origin -std=c++11 object_files.o -Lblah/lib -R\$ORIGIN/../lib -lotherlib -L/usr/sfw/lib -R/usr/sfw/lib -lcrypto -lsocket
unused $ADDVERS specification from file '/opt/developerstudio12.5/lib/compilers/CC-gcc/gcc_version.map' for object 'libgcc_s.so'
version(s):
        GCC_4.2.0

Is there some way for the two libgcc_s.so instances to coexist in one binary with references from libcrypto going to one and from the STL to the other? Looking at the Oracle linker and libraries document shows some promising options like -B group but that perhaps only works for dlopen.

I realise that I could just recompile openssl (or perhaps libressl) but it would be nicer to use the one from the OS and my colleague reckons that Sun's build makes use of hardware crypto features on the SPARC.

okapi
  • 1,340
  • 9
  • 17

0 Answers0