Moin, On Sat, 11 Oct 2014, 07:18:17 +0200, Lothar wrote:
Hi,
I am using the following command to create a shared library on my openSuSE boxes:
cc -g -shared -WL,soname,liblbHook.so.0 -o liblbHook.so.0.0.1 lbHook.o -ldl -lstdc++
On an older box (uname -a = Linux linux-mjyr 2.6.27.56-0.1-pae #1 SMP 2010-12-01 16:57:58 +0100 i686 i686 i386 GNU/Linux) all works fine. On my current box where I try to setup a new jenkins installation I get an error. (uname -a = Linux ci-master 3.11.10-21-pae #1 SMP Mon Jul 21 15:28:46 UTC 2014 (9a9565d) i686 i686 i386 GNU/Linux)
cc: error: unrecognized command line option ‘-WL,soname,liblbHook.so.0’
two errors: (1) the -WL should be -Wl ('l' in lower case), and (2) the "soname" must be prefixed with a "-". The following command should work: cc -g -shared -Wl,-soname,liblbHook.so.0 -o liblbHook.so.0.0.1 lbHook.o -ldl -lstdc++
Am I missing some tools?
I have installed Base Development Patterns and additionally therein the libtool package as it was installed on my older box.
Thanks, Lothar
HTH, cheers. l8er manfred