OSDN Git Service

* config/rs6000/t-aix43, config/rs6000/t-aix52 (SHLIB_LINK):
[pf3gnuchains/gcc-fork.git] / gcc / config / rs6000 / t-aix52
1 # 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 @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 @shlib_base_name@-tmp.a ; \
34         $(AR_CREATE_FOR_TARGET) @shlib_base_name@-tmp.a @multilib_dir@/shr.o ; \
35         mv @shlib_base_name@-tmp.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
44
45 # Either 32-bit and 64-bit objects in archives.
46 AR_FLAGS_FOR_TARGET = -X32_64
47
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
53 BOOT_LDFLAGS = -Wl,-bbigtoc