From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout-p-201.mailbox.org (mout-p-201.mailbox.org [IPv6:2001:67c:2050:0:465::201]) by sourceware.org (Postfix) with ESMTPS id AA02F385841F for ; Sun, 14 Apr 2024 00:12:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AA02F385841F Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=aarsen.me Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=aarsen.me ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AA02F385841F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:67c:2050:0:465::201 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713053556; cv=none; b=VqM8mEzHtdnDQmoF9mkqUxOW+ZSpFHXjHaRu1QQAQLhbBjQV9IaTDJSMrqea6dOsC3BwfgZ6okXFNR2LWdxlYbjXK3NUjzxr2MOyKBtaDSqtmQjAS2ciQ7y1bK7fqXXWOaPhoHMlfQpoaU4u7YHgsTfNwjn+Vx/8AScbVBDTlMI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1713053556; c=relaxed/simple; bh=Rec3vMSYWhD6ni7hascrjcn/M9bYRMwYq2+YEWAw1fA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=o7Xku4/pVhEwebx1EefYAnabqU6Xpw808zqLruO33Qwuac2mz83h4s9rhPQiam3xIbzwJloqiTSweP6Z4LFEOLh6e1baoiypvTr/Rabxodb2br5tuEAZmwF+EqkM8ZIUit6TWSnp4qtDBKaU81HpD+tmaCwoVN1ytq78DSSVYmg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4VH9jV3w13z9smm; Sun, 14 Apr 2024 02:12:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1713053550; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=qauaCwOeXIZkvjy2m2Af0pBPvkOh3b3SWuODVKF1Ht4=; b=s7NQXOXqIuK0dKCwMwjVPTFptB5LgyolIlbCf+WLNR6MISTeXQHy65Oyw2IyEY7TVFE4qF H8eE/5WJ3MssGAMdaSlot4JE3H2eveTRN5Vvwr7sNkDoCk7DMhvkItgV4UKyvKjgMnM1T/ Z6NITjj6HDAHAcv1Y5Q1+haMikbUKRdQeM4ddm/NimDiXbQu4b9bvfD2s2ZBEge6nImTY1 3VXf7Im3MypTlyx98Rqm+piXDKYCnzaL/hfnox3AoBitttPko8Zdo1SHqsi8lTp9AOCHbs 0t+HIJV++c3ZKr+NlWLPdNgmaviImk3C9H1SkhXp+s8t5ei8iSlOwrnZZBVdtA== From: =?UTF-8?q?Arsen=20Arsenovi=C4=87?= To: gcc-patches@gcc.gnu.org Cc: =?UTF-8?q?K=C3=A9vin=20Le=20Gouguec?= , =?UTF-8?q?Arsen=20Arsenovi=C4=87?= Subject: [PATCH 0/3] Recover in-tree libiconv build support Date: Sat, 13 Apr 2024 23:58:01 +0200 Message-ID: <20240414001113.1698685-1-arsen@aarsen.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_INFOUSMEBIZ,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Evening! This patchset recovers support for building the toolchain tree with in-tree libiconv being used for host modules and gettext. As spotted by Kévin Le Gouguec , I accidentally removed this functionality earlier. This patchset includes the patch sent as: https://inbox.sourceware.gcc-patches/20231221193243.368541-1-arsen@aarsen.me/ ... and so, supersedes that patchset. For the in-tree case, the old patch functionality was restored and rebased on top of current iconv.m4. Of course, this does not work for gettext, an out-of-tree lib depending on the in-tree libiconv, so, for that case, we needed to provide the right information to configure, and suppress logic in iconv.m4 using cache vars. Build-tested on arm64-apple-darwin21.6.0, and I intend to do further testing tomorrow. OK for trunk? It would be good to get these patches into GCC 14. I apologize for being quite late with delivering these, I have, unfortunately, been busied by various external factors. Hopefully, it is not too late yet. Thanks in advance, have a lovely night! Arsen Arsenović (3): toplevel: don't override gettext-runtime/configure-discovered build args gitignore: ignore /libiconv* *: support in-tree libiconv again .gitignore | 1 + Makefile.def | 9 +- Makefile.in | 100 ++++++++--------- Makefile.tpl | 8 +- config/iconv.m4 | 50 +++++++-- configure | 25 +++++ configure.ac | 21 ++++ gcc/configure | 240 +++++++++++++++++++++++++++++++---------- libcpp/configure | 206 ++++++++++++++++++++++++++++------- libstdc++-v3/configure | 121 ++++++++++++++++----- 10 files changed, 601 insertions(+), 180 deletions(-) -- 2.44.0