public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [patch ping] binutils version of snapshot builds
@ 2007-04-16 10:43 Matthias Klose
  2007-04-16 12:45 ` Alan Modra
  0 siblings, 1 reply; 4+ messages in thread
From: Matthias Klose @ 2007-04-16 10:43 UTC (permalink / raw)
  To: binutils

see http://sourceware.org/ml/binutils/2007-03/msg00285.html

thanks, Matthias

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch ping] binutils version of snapshot builds
  2007-04-16 10:43 [patch ping] binutils version of snapshot builds Matthias Klose
@ 2007-04-16 12:45 ` Alan Modra
  2007-04-18 12:15   ` Matthias Klose
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Modra @ 2007-04-16 12:45 UTC (permalink / raw)
  To: Matthias Klose; +Cc: binutils

On Mon, Apr 16, 2007 at 12:05:20PM +0200, Matthias Klose wrote:
> see http://sourceware.org/ml/binutils/2007-03/msg00285.html

OK.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch ping] binutils version of snapshot builds
  2007-04-16 12:45 ` Alan Modra
@ 2007-04-18 12:15   ` Matthias Klose
  2007-04-18 13:49     ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Matthias Klose @ 2007-04-18 12:15 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 208 bytes --]

Alan Modra schrieb:
> On Mon, Apr 16, 2007 at 12:05:20PM +0200, Matthias Klose wrote:
>> see http://sourceware.org/ml/binutils/2007-03/msg00285.html
> 
> OK.

updated patch to apply cleanly to current CVS:



[-- Attachment #2: binutils.diff --]
[-- Type: text/plain, Size: 5219 bytes --]

bfd/

2007-03-21  Matthias Klose  <doko@ubuntu.com>

	* Makefile.am(libopcodes_la_LDFLAGS): Use bfd soversion.
	* Makefile.in: Regenerate.

opcodes/

2007-03-21  Matthias Klose  <doko@ubuntu.com>

	* Makefile.am(libbfd_la_LDFLAGS): Use bfd soversion,
	(bfdver.h): Use the date in non-release builds for the soversion.
	* Makefile.in: Regenerate.

--- ./opcodes/Makefile.am.orig	2007-04-14 22:45:09.000000000 +0200
+++ ./opcodes/Makefile.am	2007-04-18 13:28:48.000000000 +0200
@@ -362,7 +362,7 @@
 # if host != build.
 libopcodes_la_DEPENDENCIES = $(OFILES)
 libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@
-libopcodes_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
+libopcodes_la_LDFLAGS = -release `cat ../bfd/libtool-soversion` @WIN32LDFLAGS@
 
 # libtool will build .libs/libopcodes.a.  We create libopcodes.a in
 # the build directory so that we don't have to convert all the
--- ./opcodes/Makefile.in.orig	2007-04-14 22:45:09.000000000 +0200
+++ ./opcodes/Makefile.in	2007-04-18 13:28:48.000000000 +0200
@@ -571,7 +571,7 @@
 # if host != build.
 libopcodes_la_DEPENDENCIES = $(OFILES)
 libopcodes_la_LIBADD = $(OFILES) @WIN32LIBADD@
-libopcodes_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
+libopcodes_la_LDFLAGS = -release `cat ../bfd/libtool-soversion` @WIN32LDFLAGS@
 
 # libtool will build .libs/libopcodes.a.  We create libopcodes.a in
 # the build directory so that we don't have to convert all the
--- ./bfd/Makefile.am.orig	2007-04-14 22:36:56.000000000 +0200
+++ ./bfd/Makefile.am	2007-04-18 13:33:21.000000000 +0200
@@ -746,7 +746,7 @@
 libbfd_la_SOURCES = $(BFD32_LIBS_CFILES)
 libbfd_la_DEPENDENCIES = $(OFILES) ofiles
 libbfd_la_LIBADD = `cat ofiles` @WIN32LIBADD@
-libbfd_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
+libbfd_la_LDFLAGS = -release `cat libtool-soversion` @WIN32LDFLAGS@
 
 # libtool will build .libs/libbfd.a.  We create libbfd.a in the build
 # directory so that we don't have to convert all the programs that use
@@ -962,23 +962,26 @@
 CLEANFILES = bfd.h dep.sed stmp-bfd-h DEP DEPA DEP1 DEP2 libbfd.a stamp-lib \
 	stmp-bin2-h stmp-lbfd-h stmp-lcoff-h
 
-DISTCLEANFILES = $(BUILD_CFILES) $(BUILD_HFILES)
+DISTCLEANFILES = $(BUILD_CFILES) $(BUILD_HFILES) libtool-soversion
 
 bfdver.h: $(srcdir)/version.h $(srcdir)/Makefile.in
 	@echo "creating $@"
 	@bfd_version=`echo "$(VERSION)" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\
 	bfd_version_string="\"$(VERSION)\"" ;\
+	bfd_soversion="$(VERSION)" ;\
 	bfd_version_package="\"$(PKGVERSION)\"" ;\
 	report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\
 	if test "x$(RELEASE)" = x ; then \
 	  bfd_version_date=`sed -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\
 	  bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\
+	  bfd_soversion="$(VERSION).$${bfd_version_date}" ;\
 	fi ;\
 	sed -e "s,@bfd_version@,$$bfd_version," \
 	    -e "s,@bfd_version_string@,$$bfd_version_string," \
 	    -e "s,@bfd_version_package@,$$bfd_version_package," \
 	    -e "s,@report_bugs_to@,$$report_bugs_to," \
-	    < $(srcdir)/version.h > $@
+	    < $(srcdir)/version.h > $@; \
+	echo "$${bfd_soversion}" > libtool-soversion
 
 # What appears below is generated by a hacked mkdep using gcc -MM.
 
--- ./bfd/Makefile.in.orig	2007-04-14 22:36:56.000000000 +0200
+++ ./bfd/Makefile.in	2007-04-18 13:31:13.000000000 +0200
@@ -924,7 +924,7 @@
 libbfd_la_SOURCES = $(BFD32_LIBS_CFILES)
 libbfd_la_DEPENDENCIES = $(OFILES) ofiles
 libbfd_la_LIBADD = `cat ofiles` @WIN32LIBADD@
-libbfd_la_LDFLAGS = -release $(VERSION) @WIN32LDFLAGS@
+libbfd_la_LDFLAGS = -release `cat libtool-soversion` @WIN32LDFLAGS@
 
 # libtool will build .libs/libbfd.a.  We create libbfd.a in the build
 # directory so that we don't have to convert all the programs that use
@@ -947,7 +947,7 @@
 CLEANFILES = bfd.h dep.sed stmp-bfd-h DEP DEPA DEP1 DEP2 libbfd.a stamp-lib \
 	stmp-bin2-h stmp-lbfd-h stmp-lcoff-h
 
-DISTCLEANFILES = $(BUILD_CFILES) $(BUILD_HFILES)
+DISTCLEANFILES = $(BUILD_CFILES) $(BUILD_HFILES) libtool-soversion
 all: config.h
 	$(MAKE) $(AM_MAKEFLAGS) all-recursive
 
@@ -1534,17 +1534,20 @@
 	@echo "creating $@"
 	@bfd_version=`echo "$(VERSION)" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$$/\1\2\3\4\5/'` ;\
 	bfd_version_string="\"$(VERSION)\"" ;\
+	bfd_soversion="$(VERSION)" ;\
 	bfd_version_package="\"$(PKGVERSION)\"" ;\
 	report_bugs_to="\"$(REPORT_BUGS_TO)\"" ;\
 	if test "x$(RELEASE)" = x ; then \
 	  bfd_version_date=`sed -n -e 's/.*DATE //p' < $(srcdir)/version.h` ;\
 	  bfd_version_string="\"$(VERSION).$${bfd_version_date}\"" ;\
+	  bfd_soversion="$(VERSION).$${bfd_version_date}" ;\
 	fi ;\
 	sed -e "s,@bfd_version@,$$bfd_version," \
 	    -e "s,@bfd_version_string@,$$bfd_version_string," \
 	    -e "s,@bfd_version_package@,$$bfd_version_package," \
 	    -e "s,@report_bugs_to@,$$report_bugs_to," \
-	    < $(srcdir)/version.h > $@
+	    < $(srcdir)/version.h > $@; \
+	echo "$${bfd_soversion}" > libtool-soversion
 
 # What appears below is generated by a hacked mkdep using gcc -MM.
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [patch ping] binutils version of snapshot builds
  2007-04-18 12:15   ` Matthias Klose
@ 2007-04-18 13:49     ` Daniel Jacobowitz
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Jacobowitz @ 2007-04-18 13:49 UTC (permalink / raw)
  To: binutils

On Wed, Apr 18, 2007 at 01:59:05PM +0200, Matthias Klose wrote:
> Alan Modra schrieb:
> > On Mon, Apr 16, 2007 at 12:05:20PM +0200, Matthias Klose wrote:
> >> see http://sourceware.org/ml/binutils/2007-03/msg00285.html
> > 
> > OK.
> 
> updated patch to apply cleanly to current CVS:

I fixed up changelog formatting and checked this in for you.

-- 
Daniel Jacobowitz
CodeSourcery

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-04-18 12:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-16 10:43 [patch ping] binutils version of snapshot builds Matthias Klose
2007-04-16 12:45 ` Alan Modra
2007-04-18 12:15   ` Matthias Klose
2007-04-18 13:49     ` Daniel Jacobowitz

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).