]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/rs6000/t-aix52
soft-fp: Move to ../libgcc.
[thirdparty/gcc.git] / gcc / config / rs6000 / t-aix52
CommitLineData
ad41bd84 1# Copyright (C) 2002, 2003, 2004, 2005, 2006,
569dc494 2# 2008, 2011 Free Software Foundation, Inc.
ad41bd84
JM
3#
4# This file is part of GCC.
5#
6# GCC is free software; you can redistribute it and/or modify
7# it under the terms of the GNU General Public License as published by
8# the Free Software Foundation; either version 3, or (at your option)
9# any later version.
10#
11# GCC is distributed in the hope that it will be useful,
12# but WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14# GNU General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with GCC; see the file COPYING3. If not see
18# <http://www.gnu.org/licenses/>.
19
5f5d5417
DE
20# Build the libraries for pthread and all of the
21# different processor models
22
23MULTILIB_OPTIONS = pthread maix64
24
25MULTILIB_DIRNAMES = pthread ppc64
26
27MULTILIB_MATCHES =
28
29LIBGCC = stmp-multilib
30INSTALL_LIBGCC = install-multilib
31
32# Build a shared libgcc library.
33SHLIB_EXT = .a
34SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
35 -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
36 @multilib_flags@ @shlib_objs@ -lc \
4e8d0554 37 `case @multilib_dir@ in \
7f142d33 38 *pthread*) echo -L$(TARGET_SYSTEM_ROOT)/usr/lib/threads -lpthreads -lc_r $(TARGET_SYSTEM_ROOT)/usr/lib/libc.a ;; \
5f5d5417 39 *) echo -lc ;; esac` ; \
4e8d0554
RS
40 rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \
41 $(AR_CREATE_FOR_TARGET) @multilib_dir@/tmp-@shlib_base_name@.a \
42 @multilib_dir@/shr.o ; \
43 mv @multilib_dir@/tmp-@shlib_base_name@.a \
44 @multilib_dir@/@shlib_base_name@.a ; \
5f5d5417
DE
45 rm -f @multilib_dir@/shr.o
46# $(slibdir) double quoted to protect it from expansion while building
47# libgcc.mk. We want this delayed until actual install time.
1628a835
DE
48SHLIB_INSTALL = \
49 $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \
50 $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \
4e8d0554
RS
51 $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/
52SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac`
5f5d5417 53SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
aca0b0b3 54SHLIB_MAPFILES = $$(libgcc_objdir)/libgcc-std.ver
5f5d5417
DE
55SHLIB_NM_FLAGS = -Bpg -X32_64
56
57# Either 32-bit and 64-bit objects in archives.
58AR_FLAGS_FOR_TARGET = -X32_64