2002-05-09 Hassan Aurag <aurag@cae.com>
[official-gcc.git] / gcc / config / mips / t-iris6
blobc1a710fa8ca1a1f7e81fd869f97473b6991e4334
1 # ??? If no mabi=X option given, but a mipsX option is, then should deal
2 # with that.
3 # ??? mabi=32 is deliberately left off the list because it doesn't work yet.
4 MULTILIB_OPTIONS=mabi=n32/mabi=64
5 MULTILIB_DIRNAMES=
6 MULTILIB_MATCHES=
8 LIBGCC = stmp-multilib
9 INSTALL_LIBGCC = install-multilib
11 # For svr4 we build crtbegin.o and crtend.o which serve to add begin and
12 # end labels to the .ctors and .dtors section when we link using gcc.
14 EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o
15 CRTSTUFF_T_CFLAGS=-g1
17 # Build a shared libgcc library.
18 SHLIB_EXT = .so
19 SHLIB_NAME = @shlib_base_name@.so
20 SHLIB_SONAME = @shlib_base_name@.so.1
21 SHLIB_MAP = @shlib_map_file@
22 SHLIB_OBJS = @shlib_objs@
24 SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
25         -Wl,-soname,$(SHLIB_SONAME) \
26         -o $(SHLIB_NAME) @multilib_flags@ $(SHLIB_OBJS) -lc && \
27         rm -f $(SHLIB_SONAME) && \
28         $(LN_S) $(SHLIB_NAME) $(SHLIB_SONAME)
29 # ??? Irix 6.5 seems to eat the option fine (if we somehow remove the
30 # -hidden_symbol option, which is documented to be ignored in conjunction
31 # with -exports_file), but fails to actually hide any symbols.
32 #       -Wl,-exports_file,$(SHLIB_MAP)
34 # $(slibdir) double quoted to protect it from expansion while building
35 # libgcc.mk.  We want this delayed until actual install time.
36 SHLIB_INSTALL = $(INSTALL_DATA) $(SHLIB_NAME) $$(slibdir)/$(SHLIB_SONAME); \
37         rm -f $$(slibdir)/$(SHLIB_NAME); \
38         $(LN_S) $(SHLIB_SONAME) $$(slibdir)/$(SHLIB_NAME)
39 SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
40 SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver 
42 # We want fine grained libraries, so use the new code to build the
43 # floating point emulation libraries.
44 FPBIT = fp-bit.c
45 DPBIT = dp-bit.c
47 dp-bit.c: $(srcdir)/config/fp-bit.c
48         echo '#undef US_SOFTWARE_GOFAST' > dp-bit.c
49         echo '#undef FLOAT' >> dp-bit.c
50         cat $(srcdir)/config/fp-bit.c >> dp-bit.c
52 fp-bit.c: $(srcdir)/config/fp-bit.c
53         echo '#define FLOAT' > fp-bit.c
54         echo '#undef US_SOFTWARE_GOFAST' >> fp-bit.c
55         cat $(srcdir)/config/fp-bit.c >> fp-bit.c
57 # This is only needed in the static libgcc as a band-aid until gcc correctly
58 # implements the N32/N64 ABI structure passing conventions
59 LIB2FUNCS_STATIC_EXTRA = $(srcdir)/config/mips/irix6-libc-compat.c