]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/config/loongarch/t-linux
LoongArch: Reimplement multilib build option handling.
[thirdparty/gcc.git] / gcc / config / loongarch / t-linux
1 # Copyright (C) 2021-2023 Free Software Foundation, Inc.
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
19 MULTIOSDIR_lp64d := ../lib64$(call if_multiarch,:loongarch64-linux-gnu)
20 MULTIOSDIR_lp64f := ../lib64/f32$(call if_multiarch,:loongarch64-linux-gnuf32)
21 MULTIOSDIR_lp64s := ../lib64/sf$(call if_multiarch,:loongarch64-linux-gnusf)
22
23 # Don't define MULTILIB_OSDIRNAMES if multilib is disabled.
24 ifeq ($(filter LA_DISABLE_MULTILIB,$(tm_defines)),)
25
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)
30
31 endif