]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR27888, fix link of gas with zlib by libtool 2.4.6
authorNicolas Boulenguez <nicolas@debian.org>
Thu, 20 May 2021 00:28:51 +0000 (09:58 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 20 May 2021 00:33:33 +0000 (10:03 +0930)
PR 27888
* Makefile.am (ZLIB): Define.
(as_new_LDADD): Add it.
* Makefile.in: Regenerate.

gas/ChangeLog
gas/Makefile.am
gas/Makefile.in

index e12b93cc8f575af26b6adbed29e03cc771731e1e..75eb501cf7b9e0a9cdb7f627ede7d118c0ff43a9 100644 (file)
@@ -1,3 +1,10 @@
+2021-05-20  Nicolas Boulenguez  <nicolas@debian.org>
+
+       PR 27888
+       * Makefile.am (ZLIB): Define.
+       (as_new_LDADD): Add it.
+       * Makefile.in: Regenerate.
+
 2021-05-17  Alex Coplan  <alex.coplan@arm.com>
 
        * config/tc-arm.c (do_mve_mov): Only reject vmov if we're moving
index fdce608d64f58526f6fa1ceafa41c512f5394351..34190e78b8c138f316d84c233c826c4032009ebf 100644 (file)
@@ -27,6 +27,7 @@ tooldir = $(exec_prefix)/$(target_alias)
 # This is where we get zlib from.  zlibdir is -L../zlib and zlibinc is
 # -I../zlib, unless we were configured with --with-system-zlib, in which
 # case both are empty.
+ZLIB = @zlibdir@ -lz
 ZLIBINC = @zlibinc@
 
 YACC = `if [ -f ../bison/bison ] ; then echo ../bison/bison -y -L../bison/bison ; else echo @YACC@ ; fi`
@@ -404,7 +405,7 @@ STAGESTUFF = *.@OBJEXT@ $(noinst_PROGRAMS)
 
 as_new_SOURCES = $(GAS_CFILES)
 as_new_LDADD = $(TARG_CPU_O) $(OBJ_FORMAT_O) $(ATOF_TARG_O) \
-       $(extra_objects) $(GASLIBS) $(LIBINTL) $(LIBM)
+       $(extra_objects) $(GASLIBS) $(LIBINTL) $(LIBM) $(ZLIB)
 as_new_DEPENDENCIES = $(TARG_CPU_O) $(OBJ_FORMAT_O) $(ATOF_TARG_O) \
        $(extra_objects) $(GASLIBS) $(LIBINTL_DEP)
 EXTRA_as_new_SOURCES = $(CFILES) $(HFILES) $(TARGET_CPU_CFILES) \
index f4fa6935cbb09564c684a4abec98db1659e53aab..f3d66b8e8b61dfb7d3533ea5f48b2019d1e97ae8 100644 (file)
@@ -427,6 +427,7 @@ tooldir = $(exec_prefix)/$(target_alias)
 # This is where we get zlib from.  zlibdir is -L../zlib and zlibinc is
 # -I../zlib, unless we were configured with --with-system-zlib, in which
 # case both are empty.
+ZLIB = @zlibdir@ -lz
 ZLIBINC = @zlibinc@
 
 # Automake 1.10+ disables lex and yacc output file regeneration if
@@ -783,7 +784,7 @@ GASLIBS = @OPCODES_LIB@ ../bfd/libbfd.la ../libiberty/libiberty.a
 STAGESTUFF = *.@OBJEXT@ $(noinst_PROGRAMS)
 as_new_SOURCES = $(GAS_CFILES)
 as_new_LDADD = $(TARG_CPU_O) $(OBJ_FORMAT_O) $(ATOF_TARG_O) \
-       $(extra_objects) $(GASLIBS) $(LIBINTL) $(LIBM)
+       $(extra_objects) $(GASLIBS) $(LIBINTL) $(LIBM) $(ZLIB)
 
 as_new_DEPENDENCIES = $(TARG_CPU_O) $(OBJ_FORMAT_O) $(ATOF_TARG_O) \
        $(extra_objects) $(GASLIBS) $(LIBINTL_DEP)