]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/loongarch/t-linux
LoongArch: Reimplement multilib build option handling.
[thirdparty/gcc.git] / gcc / config / loongarch / t-linux
CommitLineData
83ffe9cd 1# Copyright (C) 2021-2023 Free Software Foundation, Inc.
b44786f6 2#
3# This file is part of GCC.
4#
5# GCC is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 3, or (at your option)
8# any later version.
9#
10# GCC is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with GCC; see the file COPYING3. If not see
17# <http://www.gnu.org/licenses/>.
18
227b18f5
YY
19MULTIOSDIR_lp64d := ../lib64$(call if_multiarch,:loongarch64-linux-gnu)
20MULTIOSDIR_lp64f := ../lib64/f32$(call if_multiarch,:loongarch64-linux-gnuf32)
21MULTIOSDIR_lp64s := ../lib64/sf$(call if_multiarch,:loongarch64-linux-gnusf)
b44786f6 22
23# Don't define MULTILIB_OSDIRNAMES if multilib is disabled.
24ifeq ($(filter LA_DISABLE_MULTILIB,$(tm_defines)),)
25
227b18f5
YY
26 MULTILIB_OSDIRNAMES = .=$(MULTIOSDIR_$(mlib_default))
27 MULTILIB_OSDIRNAMES += mabi.lp64d=$(MULTIOSDIR_lp64d)
28 MULTILIB_OSDIRNAMES += mabi.lp64f=$(MULTIOSDIR_lp64f)
29 MULTILIB_OSDIRNAMES += mabi.lp64s=$(MULTIOSDIR_lp64s)
b44786f6 30
31endif