[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Customizing soname
From: |
Alon Bar-Lev |
Subject: |
Customizing soname |
Date: |
Thu, 27 Mar 2008 18:01:28 +0200 |
User-agent: |
KMail/1.9.9 |
Hello,
I had an issue that I solved in patching libtool, I am not sure this was
the right thing to do, but if it was, I think it should go into libtool.
I require to produce a shared library that whose name is customizable by
the user.
I use autoconf/automake/libtool in order to build the system.
I must use libtool to create libraries, from the obvious reason of creating
proper libraries in all archs.
automake cannot get modified name as rules, so I expected something
like that work:
lib_LTLIBRARIES=m1
m1_SOURCES=xxxx
m1_LDFLAGS=$(AM_LDFLAGS) -module -avoid-version -no-undefined \
-soname @CONFIG_SONAME@
install-exec-hook:
mv "$(DESTDIR)$(libdir)/m1.so" "$(DESTDIR)$(libdir)/@CONFIG_SONAME@"
But I have found no way to make libtool to accept my soname. I've read most
of the script, and found no way to do it.
In the end I ended up with the attached patch, which enable the use of -soname
argument.
This is for 1.5 series. But I've read the 2.X branch and found no solution
there either.
As far as I undersand any other solution make the Makefile.am much more complex,
and forces me to write my own rules for building and installing my libray.
Can you please consider adding a way to specify the soname as libtool argument?
Thanks,
Alon Bar-Lev.
---
--- libtool.org 2008-03-27 16:08:34.000000000 +0200
+++ libtool 2008-03-27 16:09:07.000000000 +0200
@@ -2034,6 +2034,11 @@ EOF
continue
;;
+ -soname)
+ prev="soname_spec"
+ continue
+ ;;
+
# -64, -mips[0-9] enable 64-bit mode on the SGI compiler
# -r[0-9][0-9]* specifies the processor on the SGI compiler
# -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
- Customizing soname,
Alon Bar-Lev <=
- Re: Customizing soname, Peter O'Gorman, 2008/03/27
- Re: Customizing soname, Alon Bar-Lev, 2008/03/27
- Re: Customizing soname, Ralf Wildenhues, 2008/03/27
- Re: Customizing soname, Alon Bar-Lev, 2008/03/28
- Re: Customizing soname, Peter O'Gorman, 2008/03/28
- Re: Customizing soname, Alon Bar-Lev, 2008/03/28
- Re: Customizing soname, Bob Friesenhahn, 2008/03/28
- Re: Customizing soname, Ralf Wildenhues, 2008/03/28