1 # We want fine grained libraries, so use the new code to build the
2 # floating point emulation libraries.
6 dp-bit.c: $(srcdir)/config/fp-bit.c
7 cat $(srcdir)/config/fp-bit.c > dp-bit.c
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
13 # Build the libraries for pthread and all of the
14 # different processor models
16 MULTILIB_OPTIONS = pthread maix64
18 MULTILIB_DIRNAMES = pthread ppc64
22 LIBGCC = stmp-multilib
23 INSTALL_LIBGCC = install-multilib
25 # Build a shared libgcc library.
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 @shlib_base_name@ in \
31 *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
32 *) echo -lc ;; esac` ; \
33 rm -f tmp-@shlib_base_name@.a ; \
34 $(AR_CREATE_FOR_TARGET) tmp-@shlib_base_name@.a @multilib_dir@/shr.o ; \
35 mv tmp-@shlib_base_name@.a @shlib_base_name@.a ; \
36 rm -f @multilib_dir@/shr.o
37 # $(slibdir) double quoted to protect it from expansion while building
38 # libgcc.mk. We want this delayed until actual install time.
39 SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.a $$(DESTDIR)$$(slibdir)/
40 SHLIB_LIBS = -lc `case @shlib_base_name@ in *pthread*) echo -lpthread ;; esac`
41 SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
42 SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver
43 SHLIB_NM_FLAGS = -Bpg -X32_64
45 # Either 32-bit and 64-bit objects in archives.
46 AR_FLAGS_FOR_TARGET = -X32_64
48 # Compile Ada files with minimal-toc. The primary focus is gnatlib, so
49 # that the library does not use nearly the entire TOC of applications
50 # until gnatlib is built as a shared library on AIX. Compiling the
51 # compiler with -mminimal-toc does not cause any harm.
52 T_ADAFLAGS = -mminimal-toc