From: hjl@lucon.org (H.J. Lu)
To: ian@cygnus.com (Ian Lance Taylor)
Cc: gas2@cygnus.com
Subject: soname patch for gas2
Date: Thu, 11 Dec 1997 08:35:00 -0000 [thread overview]
Message-ID: <m0xgBXS-0004edC@ocean.lucon.org> (raw)
In-Reply-To: <199712082229.RAA12229@subrogation.cygnus.com>
>
> From: hjl@lucon.org (H.J. Lu)
> Date: Mon, 8 Dec 1997 14:22:04 -0800 (PST)
>
> > Does soname work now? Thanks.
> >
> > In what way was it broken? As far as I know, it has worked for a
> > couple of years now.
>
> The new gas snapshot has libbfd.so.0.0.0. I'd like to see
> libbfd.so.2.8.1.0.18. Unfortunately there is no easy way
> to do it since I can only get libbfd.so.2.8.1 even if I
> want to make a binutils 2.8.1.0.18 for Linux. If I use
> libbfd.so.2.8.1, it will confuse people.
>
> Oh that. No, that hasn't been fixed yet. Getting the version number
> to match the release number is a libtool issue. If you figure out a
> clean patch, I'll be happy to use it.
>
> Ian
>
Here is the patch. I need extension for Linux since I have to make
binutils 2.8.x.0.x for Linux. Otherwise, I have to use 2.8.x. It will
be quite confusing.
BTW, bfd/VERINFO doesn't have to be updated as often as VERSION.
Thanks.
--
H.J. Lu (hjl@gnu.org)
--
Thu Dec 11 08:22:42 1997 H.J. Lu (hjl@gnu.org)
* ltmain.sh (extension): New. Set from $vinfo.
(versuffix): Add $extension for Linux.
Thu Dec 11 08:22:42 1997 H.J. Lu (hjl@gnu.org)
* bfd/Makefile.am (libbfd_la_LDFLAGS): New.
(config.status): Depend on $(srcdir)/VERINFO.
* bfd/configure.in (VERINFO): Substitute it.
* bfd/VERINFO: New.
Thu Dec 11 08:22:42 1997 H.J. Lu (hjl@gnu.org)
* opcodes/Makefile.am (libopcodes_la_LDFLAGS): New.
(config.status): Depend on $(srcdir)/../bfd/VERINFO.
* opcodes/configure.in (VERINFO): Substitute it.
Index: ltmain.sh
===================================================================
RCS file: /home/work/cvs/gnu/binutils/ltmain.sh,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 ltmain.sh
--- ltmain.sh 1997/11/18 17:24:56 1.1.1.2
+++ ltmain.sh 1997/12/11 09:06:52
@@ -609,6 +609,7 @@
current=0
revision=0
age=0
+ extension=
if test -n "$objs"; then
echo "$progname: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1
@@ -631,7 +632,7 @@
set dummy $vinfo
IFS="$save_ifs"
- if test -n "$5"; then
+ if test -n "$6"; then
echo "$progname: too many parameters to \`-version-info'" 1>&2
echo "$help" 1>&2
exit 1
@@ -640,6 +641,7 @@
test -n "$2" && current="$2"
test -n "$3" && revision="$3"
test -n "$4" && age="$4"
+ test -n "$5" && extension="$5"
# Check that each of the things are valid numbers.
case "$current" in
@@ -683,7 +685,11 @@
linux)
version_vars="$version_vars major versuffix"
major=`expr $current - $age`
- versuffix="$major.$age.$revision"
+ if test -n "$extension"; then
+ versuffix="$major.$age.$revision.$extension"
+ else
+ versuffix="$major.$age.$revision"
+ fi
;;
osf)
Index: bfd/Makefile.am
===================================================================
RCS file: /home/work/cvs/gnu/binutils/bfd/Makefile.am,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile.am
--- bfd/Makefile.am 1997/10/25 21:56:17 1.1.1.1
+++ bfd/Makefile.am 1997/12/11 16:01:42
@@ -461,6 +463,9 @@
$(INSTALL_DATA) $(INCDIR)/ansidecl.h $(includedir)/ansidecl.h
$(INSTALL_DATA) $(INCDIR)/bfdlink.h $(includedir)/bfdlink.h
+libbfd_la_LDFLAGS=-version-info @VERINFO@
+config.status: $(srcdir)/VERINFO
+
# Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
.dep: dep.sed $(CFILES) $(HFILES) bfd.h
rm -f .dep1
Index: bfd/configure.in
===================================================================
RCS file: /home/work/cvs/gnu/binutils/bfd/configure.in,v
retrieving revision 1.1.1.34
diff -u -r1.1.1.34 configure.in
--- bfd/configure.in 1997/11/18 17:27:05 1.1.1.34
+++ bfd/configure.in 1997/12/11 16:15:34
@@ -584,6 +585,22 @@
AC_SUBST(all_backends)
AC_SUBST(bfd_backends)
AC_SUBST(bfd_machines)
+
+verinfo=`cat ${srcdir}/VERINFO`
+IFS="${IFS= }"; save_ifs="$IFS"; IFS='.'
+set dummy $verinfo
+IFS="$save_ifs"
+
+test -n "$2" && major=$2
+test -n "$3" && minor=$3
+test -n "$4" && patch=$4
+test -n "$5" && extension="$5"
+test -n "$6" && extension="$extension.$6"
+test -n "$7" && extension="$extension.$7"
+
+VERINFO=`expr $major + $minor`:$patch:$minor
+test -n "$extension" && VERINFO=$VERINFO:$extension
+AC_SUBST(VERINFO)
tdefaults=""
test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
Index: opcodes/Makefile.am
===================================================================
RCS file: /home/work/cvs/gnu/binutils/opcodes/Makefile.am,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 Makefile.am
--- opcodes/Makefile.am 1997/10/25 21:56:52 1.1.1.1
+++ opcodes/Makefile.am 1997/12/11 16:01:48
@@ -127,6 +127,8 @@
CLEANFILES = libopcodes.a stamp-lib dep.sed .dep .dep1
+libopcodes_la_LDFLAGS = -version-info @VERINFO@
+config.status: $(srcdir)/../bfd/VERINFO
# This dependency stuff is copied from BFD.
Index: opcodes/configure.in
===================================================================
RCS file: /home/work/cvs/gnu/binutils/opcodes/configure.in,v
retrieving revision 1.1.1.20
diff -u -r1.1.1.20 configure.in
--- opcodes/configure.in 1997/11/18 17:28:46 1.1.1.20
+++ opcodes/configure.in 1997/12/11 16:15:14
@@ -172,4 +172,20 @@
AC_SUBST(archdefs)
AC_SUBST(BFD_MACHINES)
+verinfo=`cat ${srcdir}/../bfd/VERINFO`
+IFS="${IFS= }"; save_ifs="$IFS"; IFS='.'
+set dummy $verinfo
+IFS="$save_ifs"
+
+test -n "$2" && major=$2
+test -n "$3" && minor=$3
+test -n "$4" && patch=$4
+test -n "$5" && extension="$5"
+test -n "$6" && extension="$extension.$6"
+test -n "$7" && extension="$extension.$7"
+
+VERINFO=`expr $major + $minor`:$patch:$minor
+test -n "$extension" && VERINFO=$VERINFO:$extension
+AC_SUBST(VERINFO)
+
AC_OUTPUT(Makefile)
--- /dev/null Wed Dec 31 16:00:00 1969
+++ bfd/VERINFO Thu Dec 11 07:35:19 1997
@@ -0,0 +1 @@
+2.8.1.0.18
prev parent reply other threads:[~1997-12-11 8:35 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-12-08 6:09 binutils 2.8.1 problem compiling gcc-2.8.0-971206 Joel Sherrill
1997-12-08 9:26 ` Ian Lance Taylor
1997-12-08 11:20 ` Joel Sherrill
1997-12-08 11:20 ` Ian Lance Taylor
1997-12-08 11:32 ` Joel Sherrill
1997-12-08 14:38 ` H.J. Lu
1997-12-08 14:14 ` Ian Lance Taylor
1997-12-08 14:22 ` H.J. Lu
1997-12-08 14:38 ` Ian Lance Taylor
1997-12-11 8:35 ` H.J. Lu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m0xgBXS-0004edC@ocean.lucon.org \
--to=hjl@lucon.org \
--cc=gas2@cygnus.com \
--cc=ian@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).