From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 516983858022 for ; Tue, 25 Jan 2022 09:12:28 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 516983858022 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gentoo.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gentoo.org Received: by smtp.gentoo.org (Postfix, from userid 559) id 37AB9342E76; Tue, 25 Jan 2022 09:12:27 +0000 (UTC) From: Mike Frysinger To: newlib@sourceware.org Subject: [PATCH] libgloss: define default target_makefile_frag in top-level Date: Tue, 25 Jan 2022 04:12:24 -0500 Message-Id: <20220125091224.20992-1-vapier@gentoo.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jan 2022 09:12:32 -0000 A bunch of subdirs want this, so make it available in the common dir to ease future merges. It isn't used directly in libgloss so it should be harmless as-is. --- libgloss/configure | 8 +++++++- libgloss/configure.ac | 4 ++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/libgloss/configure b/libgloss/configure index eb575b237d65..9cf67031fe17 100755 --- a/libgloss/configure +++ b/libgloss/configure @@ -585,6 +585,7 @@ ac_unique_file="libnosys" enable_option_checking=no ac_subst_vars='LTLIBOBJS LIBOBJS +target_makefile_frag_path host_makefile_frag_path CCASFLAGS CCAS @@ -681,7 +682,8 @@ PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' -ac_subst_files='host_makefile_frag' +ac_subst_files='host_makefile_frag +target_makefile_frag' ac_user_opts=' enable_option_checking enable_silent_rules @@ -3335,10 +3337,14 @@ test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS host_makefile_frag=${srcdir}/config/default.mh +target_makefile_frag=${srcdir}/config/default.mt host_makefile_frag_path=$host_makefile_frag +target_makefile_frag_path=$target_makefile_frag + + if test "${multilib}" = "yes"; then multilib_arg="--enable-multilib" diff --git a/libgloss/configure.ac b/libgloss/configure.ac index 9cbbf58cc7cb..89274fede8b6 100644 --- a/libgloss/configure.ac +++ b/libgloss/configure.ac @@ -199,6 +199,7 @@ AC_PROG_RANLIB LIB_AM_PROG_AS host_makefile_frag=${srcdir}/config/default.mh +target_makefile_frag=${srcdir}/config/default.mt dnl We have to assign the same value to other variables because autoconf dnl doesn't provide a mechanism to substitute a replacement keyword with @@ -207,6 +208,9 @@ dnl host_makefile_frag_path=$host_makefile_frag AC_SUBST(host_makefile_frag_path) AC_SUBST_FILE(host_makefile_frag) +target_makefile_frag_path=$target_makefile_frag +AC_SUBST(target_makefile_frag_path) +AC_SUBST_FILE(target_makefile_frag) if test "${multilib}" = "yes"; then multilib_arg="--enable-multilib" -- 2.34.1