From 56f39033698b22a89571b345e5133b486822df1d Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 20 Jun 2024 21:14:24 +0930 Subject: Revert "Remove LIBINTL_DEP" This reverts commit e874cbd3879843a83e4bcc4b54cd7107387b1df6. The patch was wrong. LIBINTL_DEP is needed with an in-tree gettext. --- gold/Makefile.am | 7 ++++--- gold/Makefile.in | 9 ++++++--- gold/configure | 2 ++ gold/testsuite/Makefile.am | 2 +- gold/testsuite/Makefile.in | 3 ++- 5 files changed, 15 insertions(+), 8 deletions(-) (limited to 'gold') diff --git a/gold/Makefile.am b/gold/Makefile.am index ef307ad..ddd6a00 100644 --- a/gold/Makefile.am +++ b/gold/Makefile.am @@ -185,7 +185,7 @@ libgold_a_SOURCES = $(CCFILES) $(HFILES) $(YFILES) $(DEFFILES) libgold_a_LIBADD = $(LIBOBJS) sources_var = main.cc -deps_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) +deps_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL_DEP) ldadd_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(GOLD_LDADD) $(LIBINTL) \ $(THREADLIBS) $(LIBDL) $(ZLIB) $(ZSTD_LIBS) $(JANSSON_LIBS) ldflags_var = $(GOLD_LDFLAGS) @@ -198,12 +198,13 @@ ld_new_LDFLAGS = $(ldflags_var) EXTRA_ld_new_SOURCES = $(TARGETSOURCES) incremental_dump_SOURCES = incremental-dump.cc -incremental_dump_DEPENDENCIES = $(TARGETOBJS) libgold.a $(LIBIBERTY) +incremental_dump_DEPENDENCIES = $(TARGETOBJS) libgold.a $(LIBIBERTY) \ + $(LIBINTL_DEP) incremental_dump_LDADD = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL) \ $(THREADLIBS) $(LIBDL) $(ZLIB) $(ZSTD_LIBS) $(JANSSON_LIBS) dwp_SOURCES = dwp.cc -dwp_DEPENDENCIES = libgold.a $(LIBIBERTY) +dwp_DEPENDENCIES = libgold.a $(LIBIBERTY) $(LIBINTL_DEP) dwp_LDADD = libgold.a $(LIBIBERTY) $(GOLD_LDADD) $(LIBINTL) $(THREADLIBS) \ $(LIBDL) $(ZLIB) $(ZSTD_LIBS) $(JANSSON_LIBS) dwp_LDFLAGS = $(GOLD_LDFLAGS) diff --git a/gold/Makefile.in b/gold/Makefile.in index 996f5e0..1e6b9c7 100644 --- a/gold/Makefile.in +++ b/gold/Makefile.in @@ -569,6 +569,7 @@ LDFLAGS = @LDFLAGS@ LFS_CFLAGS = @LFS_CFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ +LIBINTL_DEP = @LIBINTL_DEP@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LN_S = @LN_S@ @@ -826,7 +827,7 @@ ALL_TARGETOBJS = \ libgold_a_SOURCES = $(CCFILES) $(HFILES) $(YFILES) $(DEFFILES) libgold_a_LIBADD = $(LIBOBJS) sources_var = main.cc -deps_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) +deps_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL_DEP) ldadd_var = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(GOLD_LDADD) $(LIBINTL) \ $(THREADLIBS) $(LIBDL) $(ZLIB) $(ZSTD_LIBS) $(JANSSON_LIBS) @@ -837,12 +838,14 @@ ld_new_LDADD = $(ldadd_var) ld_new_LDFLAGS = $(ldflags_var) EXTRA_ld_new_SOURCES = $(TARGETSOURCES) incremental_dump_SOURCES = incremental-dump.cc -incremental_dump_DEPENDENCIES = $(TARGETOBJS) libgold.a $(LIBIBERTY) +incremental_dump_DEPENDENCIES = $(TARGETOBJS) libgold.a $(LIBIBERTY) \ + $(LIBINTL_DEP) + incremental_dump_LDADD = $(TARGETOBJS) libgold.a $(LIBIBERTY) $(LIBINTL) \ $(THREADLIBS) $(LIBDL) $(ZLIB) $(ZSTD_LIBS) $(JANSSON_LIBS) dwp_SOURCES = dwp.cc -dwp_DEPENDENCIES = libgold.a $(LIBIBERTY) +dwp_DEPENDENCIES = libgold.a $(LIBIBERTY) $(LIBINTL_DEP) dwp_LDADD = libgold.a $(LIBIBERTY) $(GOLD_LDADD) $(LIBINTL) $(THREADLIBS) \ $(LIBDL) $(ZLIB) $(ZSTD_LIBS) $(JANSSON_LIBS) diff --git a/gold/configure b/gold/configure index 66007ef..a2674d6 100755 --- a/gold/configure +++ b/gold/configure @@ -698,6 +698,7 @@ INSTOBJEXT DATADIRNAME CATALOGS INCINTL +LIBINTL_DEP POSUB LTLIBINTL LIBINTL @@ -8772,6 +8773,7 @@ fi + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 $as_echo_n "checking whether NLS is requested... " >&6; } if test x"$USE_NLS" != xyes; then diff --git a/gold/testsuite/Makefile.am b/gold/testsuite/Makefile.am index 2fb2a53..2f1348f 100644 --- a/gold/testsuite/Makefile.am +++ b/gold/testsuite/Makefile.am @@ -118,7 +118,7 @@ check_LIBRARIES = libgoldtest.a libgoldtest_a_SOURCES = test.cc testmain.cc testfile.cc DEPENDENCIES = \ - libgoldtest.a ../libgold.a ../../libiberty/libiberty.a + libgoldtest.a ../libgold.a ../../libiberty/libiberty.a $(LIBINTL_DEP) # The unittests themselves if NATIVE_OR_CROSS_LINKER diff --git a/gold/testsuite/Makefile.in b/gold/testsuite/Makefile.in index 1c7a455..9cf21df 100644 --- a/gold/testsuite/Makefile.in +++ b/gold/testsuite/Makefile.in @@ -2671,6 +2671,7 @@ LDFLAGS = @LDFLAGS@ LFS_CFLAGS = @LFS_CFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ +LIBINTL_DEP = @LIBINTL_DEP@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LN_S = @LN_S@ @@ -2903,7 +2904,7 @@ TESTS = $(check_SCRIPTS) $(check_PROGRAMS) check_LIBRARIES = libgoldtest.a libgoldtest_a_SOURCES = test.cc testmain.cc testfile.cc DEPENDENCIES = \ - libgoldtest.a ../libgold.a ../../libiberty/libiberty.a + libgoldtest.a ../libgold.a ../../libiberty/libiberty.a $(LIBINTL_DEP) @NATIVE_OR_CROSS_LINKER_TRUE@object_unittest_SOURCES = object_unittest.cc @NATIVE_OR_CROSS_LINKER_TRUE@object_unittest_LDFLAGS = $(THREADFLAGS) -- cgit v1.1