t-aix52 revision 146895
1# We want fine grained libraries, so use the new code to build the 2# floating point emulation libraries. 3FPBIT = fp-bit.c 4DPBIT = dp-bit.c 5 6dp-bit.c: $(srcdir)/config/fp-bit.c 7 cat $(srcdir)/config/fp-bit.c > dp-bit.c 8 9fp-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 16MULTILIB_OPTIONS = pthread maix64 17 18MULTILIB_DIRNAMES = pthread ppc64 19 20MULTILIB_MATCHES = 21 22LIBGCC = stmp-multilib 23INSTALL_LIBGCC = install-multilib 24 25# Build a shared libgcc library. 26SHLIB_EXT = .a 27SHLIB_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. 39SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.a $$(DESTDIR)$$(slibdir)/ 40SHLIB_LIBS = -lc `case @shlib_base_name@ in *pthread*) echo -lpthread ;; esac` 41SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk 42SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/rs6000/libgcc-ppc64.ver 43SHLIB_NM_FLAGS = -Bpg -X32_64 44 45# GCC 128-bit long double support routines. 46LIB2FUNCS_EXTRA = $(srcdir)/config/rs6000/darwin-ldouble.c 47 48# Either 32-bit and 64-bit objects in archives. 49AR_FLAGS_FOR_TARGET = -X32_64 50 51# Compile Ada files with minimal-toc. The primary focus is gnatlib, so 52# that the library does not use nearly the entire TOC of applications 53# until gnatlib is built as a shared library on AIX. Compiling the 54# compiler with -mminimal-toc does not cause any harm. 55T_ADAFLAGS = -mminimal-toc 56