2007-04-18 Matthias Klose <doko@ubuntu.com>
authorDaniel Jacobowitz <drow@false.org>
Wed, 18 Apr 2007 12:14:50 +0000 (12:14 +0000)
committerDaniel Jacobowitz <drow@false.org>
Wed, 18 Apr 2007 12:14:50 +0000 (12:14 +0000)
* Makefile.am (libbfd_la_LDFLAGS): Use bfd soversion.
(bfdver.h): Use the date in non-release builds for the soversion.
* Makefile.in: Regenerate.

2007-04-18  Matthias Klose  <doko@ubuntu.com>

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

bfd/ChangeLog
bfd/Makefile.am
bfd/Makefile.in
opcodes/ChangeLog
opcodes/Makefile.am
opcodes/Makefile.in

index b670e62c8197e3c1106643a38a52f2aa9d98602f..f4b9a05ca12854e92350d7909224267264d33688 100644 (file)
@@ -1,3 +1,9 @@
+2007-04-18  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.
+
 2007-04-17  Paul Brook  <paul@codesourcery.com>
 
        * elf.c (_bfd_elf_is_function_type): New function.
index e85d75cf1a0c4d77c2142357ddd0de88f1b3f218..e0e3f96b6e7fda8a56d00cd3383b0a82409db3b3 100644 (file)
@@ -746,7 +746,7 @@ ofiles: stamp-ofiles ; @true
 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 @@ MOSTLYCLEANFILES = ofiles stamp-ofiles
 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.
 
index d29ae5c4b7490918c57090719630bcb1a21689b4..40acf2db2e5340b4f9aab815a774fbef84582fba 100644 (file)
@@ -924,7 +924,7 @@ OFILES = $(BFD_BACKENDS) $(BFD_MACHINES) @COREFILE@ @bfd64_libs@
 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 @@ MOSTLYCLEANFILES = ofiles stamp-ofiles
 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 @@ 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.
 
index d846b72d6b50e740af69cedf0cbe91c35f5fc0d9..e7acaca159b9c58fab1230bb1c5139077102f6fb 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-18  Matthias Klose  <doko@ubuntu.com>
+
+       * Makefile.am (libopcodes_la_LDFLAGS): Use bfd soversion.
+       * Makefile.in: Regenerate.
+
 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
 
        * Makefile.am: Add ACLOCAL_AMFLAGS.
index 96433f3fae5a52f422ab0b9e0ce3ce4690fd9ab3..d187ce21052b219bd94ed8ff956fc154a2bfe385 100644 (file)
@@ -362,7 +362,7 @@ libopcodes_la_SOURCES =  dis-buf.c disassemble.c dis-init.c
 # 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
index 8acad92bd62ac360e679a850abcdd62d50bd8a41..dbb4354bc4df557bb1e8e0732f4f7f93927f6eb4 100644 (file)
@@ -571,7 +571,7 @@ libopcodes_la_SOURCES = dis-buf.c disassemble.c dis-init.c
 # 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
This page took 0.045107 seconds and 4 git commands to generate.