1 |
12 |
jlechner |
# We want fine grained libraries, so use the new code to build the
|
2 |
|
|
# floating point emulation libraries.
|
3 |
|
|
FPBIT = fp-bit.c
|
4 |
|
|
DPBIT = dp-bit.c
|
5 |
|
|
|
6 |
|
|
dp-bit.c: $(srcdir)/config/fp-bit.c
|
7 |
|
|
cat $(srcdir)/config/fp-bit.c > dp-bit.c
|
8 |
|
|
|
9 |
|
|
fp-bit.c: $(srcdir)/config/fp-bit.c
|
10 |
|
|
echo '#define FLOAT' > fp-bit.c
|
11 |
|
|
cat $(srcdir)/config/fp-bit.c >> fp-bit.c
|
12 |
|
|
|
13 |
|
|
# Build the libraries for pthread and all of the
|
14 |
|
|
# different processor models
|
15 |
|
|
|
16 |
|
|
MULTILIB_OPTIONS = pthread maix64
|
17 |
|
|
|
18 |
|
|
MULTILIB_DIRNAMES = pthread ppc64
|
19 |
|
|
|
20 |
|
|
MULTILIB_MATCHES =
|
21 |
|
|
|
22 |
|
|
LIBGCC = stmp-multilib
|
23 |
|
|
INSTALL_LIBGCC = install-multilib
|
24 |
|
|
|
25 |
|
|
# Build a shared libgcc library.
|
26 |
|
|
SHLIB_EXT = .a
|
27 |
|
|
SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
|
28 |
|
|
-Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
|
29 |
|
|
@multilib_flags@ @shlib_objs@ -lc \
|
30 |
|
|
`case @multilib_dir@ in \
|
31 |
|
|
*pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
|
32 |
|
|
*) echo -lc ;; esac` ; \
|
33 |
|
|
rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \
|
34 |
|
|
$(AR_CREATE_FOR_TARGET) @multilib_dir@/tmp-@shlib_base_name@.a \
|
35 |
|
|
@multilib_dir@/shr.o ; \
|
36 |
|
|
mv @multilib_dir@/tmp-@shlib_base_name@.a \
|
37 |
|
|
@multilib_dir@/@shlib_base_name@.a ; \
|
38 |
|
|
rm -f @multilib_dir@/shr.o
|
39 |
|
|
# $(slibdir) double quoted to protect it from expansion while building
|
40 |
|
|
# libgcc.mk. We want this delayed until actual install time.
|
41 |
|
|
SHLIB_INSTALL = \
|
42 |
|
|
$$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \
|
43 |
|
|
$(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \
|
44 |
|
|
$$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/
|
45 |
|
|
SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac`
|
46 |
|
|
SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
|
47 |
|
|
SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/rs6000/libgcc-ppc64.ver
|
48 |
|
|
SHLIB_NM_FLAGS = -Bpg -X32_64
|
49 |
|
|
|
50 |
|
|
# GCC 128-bit long double support routines.
|
51 |
|
|
LIB2FUNCS_EXTRA = $(srcdir)/config/rs6000/ppc64-fp.c \
|
52 |
|
|
$(srcdir)/config/rs6000/darwin-ldouble.c
|
53 |
|
|
TARGET_LIBGCC2_CFLAGS = -mlong-double-128
|
54 |
|
|
|
55 |
|
|
# Either 32-bit and 64-bit objects in archives.
|
56 |
|
|
AR_FLAGS_FOR_TARGET = -X32_64
|
57 |
|
|
|
58 |
|
|
# Compile Ada files with minimal-toc. The primary focus is gnatlib, so
|
59 |
|
|
# that the library does not use nearly the entire TOC of applications
|
60 |
|
|
# until gnatlib is built as a shared library on AIX. Compiling the
|
61 |
|
|
# compiler with -mminimal-toc does not cause any harm.
|
62 |
|
|
T_ADAFLAGS = -mminimal-toc
|
63 |
|
|
BOOT_LDFLAGS = -Wl,-bbigtoc
|
64 |
|
|
LDFLAGS = `case $(CC) in *gcc*) echo -Wl,-bbigtoc ;; esac;`
|