Re: Creating shared libraries issues
Manfred Hollstein <[email protected]> Sat, 11 Oct 2014 09:10:04 +0200
| Newsgroups | gmane.linux.suse.programming |
|---|---|
| Message-ID | <[email protected]> |
--jq0ap7NbKX2Kqbes
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Moin,
On Sat, 11 Oct 2014, 07:18:17 +0200, Lothar wrote:
> Hi,
>=20
> I am using the following command to create a shared library on my openSuS=
E boxes:
>=20
> cc -g -shared -WL,soname,liblbHook.so.0 -o liblbHook.so.0.0.1 lbHook.o -=
ldl -lstdc++
>=20
> On an older box (uname -a =3D Linux linux-mjyr 2.6.27.56-0.1-pae #1 SMP 2=
010-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 a=
n error. (uname -a =3D Linux ci-master 3.11.10-21-pae #1 SMP Mon Jul 21 15:=
28:46 UTC 2014 (9a9565d) i686 i686 i386 GNU/Linux)
>=20
> cc: error: unrecognized command line option =E2=80=98-WL,soname,liblbHook=
=2Eso.0=E2=80=99
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?
>=20
> I have installed Base Development Patterns and additionally therein the l=
ibtool package as it was installed on my older box.
>=20
> Thanks, Lothar
HTH, cheers.
l8er
manfred
--jq0ap7NbKX2Kqbes
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iEYEARECAAYFAlQ418wACgkQMUXzaye6pi1L/wCdHq1rqogYQ42f1J0cZyIzHg/W
ySMAnA3Ps7ib+Nh2b+XBILASA98GyOVn
=CqMP
-----END PGP SIGNATURE-----
--jq0ap7NbKX2Kqbes--
--
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]