From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7EB93158086 for ; Sat, 25 Dec 2021 04:24:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D51002BC016; Sat, 25 Dec 2021 04:23:58 +0000 (UTC) Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id 19D622BC002 for ; Sat, 25 Dec 2021 04:23:56 +0000 (UTC) Received: from ld50.lan (unknown [101.88.31.179]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id 9BE72600B5; Sat, 25 Dec 2021 12:23:50 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=xen0n.name; s=mail; t=1640406230; bh=moP3c0IQtcz/OxdLj9HlNHXkIF+fEXiKgX26puSeD+8=; h=From:To:Cc:Subject:Date:From; b=aDmw6HX3ngt6412IhVgy+8a1CrrMH+LQ8aAGtGWG4u1UX8e+UX3+HJ6Td2LGZ4wOI fspx/gSwjlKN9d3c+IqEz5KMfhp3Q0EdHlrQYLB/8MJQZtcaNWKQKUWzGj9EQJ7bdk ix3VbILG9fxH6wHz8DvjFrwUXGydfMadBBYqgtwQ= From: WANG Xuerui To: gentoo-dev@lists.gentoo.org Cc: WANG Xuerui Subject: [gentoo-dev] [PATCH] multilib.eclass: add initial defaults for ARCH=loong Date: Sat, 25 Dec 2021 12:23:41 +0800 Message-Id: <20211225042341.1687502-1-i.gentoo@xen0n.name> X-Mailer: git-send-email 2.34.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 003b5b76-06d2-437c-9632-1f9a55a2908b X-Archives-Hash: bc5e60109635e49fa0ec63beed8ff49d From: WANG Xuerui There is only full support for the LP64D ABI in the initial upstream submissions for the various low-level pieces, so full multilib combinations are not pursued at the moment; but the expected library search path of gcc (`lib64`) means the default of `lib` does not work in our case. Signed-off-by: WANG Xuerui --- eclass/multilib.eclass | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass index 483f8d10c72..b14b0ef7785 100644 --- a/eclass/multilib.eclass +++ b/eclass/multilib.eclass @@ -368,6 +368,15 @@ multilib_env() { ;; esac ;; + loongarch64*) + export CFLAGS_lp64d=${CFLAGS_lp64d--mabi=lp64d} + export CHOST_lp64d=${CTARGET} + export CTARGET_lp64d=${CTARGET} + export LIBDIR_lp64d=${LIBDIR_lp64d-lib64} + + : ${MULTILIB_ABIS=lp64d} + : ${DEFAULT_ABI=lp64d} + ;; mips64*|mipsisa64*) export CFLAGS_o32=${CFLAGS_o32--mabi=32} export CHOST_o32=${CTARGET/mips64/mips} -- 2.34.0