[opensuse-programming] How do I get a shared library to build with an SONAME
Hi, I'm trying to package openCOLLADA shared libraries for linux, upstream don't build for linux only mac and windows. How does one build the soname into the libraries? Is there any reference to doing this somewhere? Thanks Dave P -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org
On Saturday 23 October 2010, Dave Plater wrote:
Hi, I'm trying to package openCOLLADA shared libraries for linux, upstream don't build for linux only mac and windows. How does one build the soname into the libraries? Is there any reference to doing this somewhere?
I'm not 100% sure that this is what you mean, but ld has a parameter -soname which lets you set it for that library. The gcc parameter would be something like -Wl,soname,foo which would set the soname to foo Anders -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org
On 10/23/2010 07:06 PM, Anders Johansson wrote:
On Saturday 23 October 2010, Dave Plater wrote:
Hi, I'm trying to package openCOLLADA shared libraries for linux, upstream don't build for linux only mac and windows. How does one build the soname into the libraries? Is there any reference to doing this somewhere?
I'm not 100% sure that this is what you mean, but ld has a parameter -soname which lets you set it for that library. The gcc parameter would be something like -Wl,soname,foo which would set the soname to foo
Anders
Thanks to all for their help, I haven't rebuilt yet but another lib I maintain uses scons and with the " -Wl,soname" clue I've located the part where the soname and versioning happens so I can take it from there. Thanks again Dave P -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org
On Sat, 23 Oct 2010, 18:35:12 +0200, Dave Plater wrote:
Hi, I'm trying to package openCOLLADA shared libraries for linux, upstream don't build for linux only mac and windows. How does one build the soname into the libraries?
gcc -shared -o libtest.so.1.0 -Wl,-soname,libtest.so.1 foo.o bar.o ...
Is there any reference to doing this somewhere?
info ld
Thanks Dave P
HTH, cheers. l8er manfred -- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org
participants (3)
-
Anders Johansson
-
Dave Plater
-
Manfred Hollstein