1 MULTILIB_OPTIONS = mabi=32/mabi=n32/mabi=64
2 MULTILIB_DIRNAMES = o32 32 64
3 MULTILIB_OSDIRNAMES = ../lib ../lib32 ../lib64
5 EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o
7 LIB2FUNCS_EXTRA = $(srcdir)/config/mips/_tilib.c
11 tp-bit.c: $(srcdir)/config/fp-bit.c
12 echo '#ifdef __MIPSEL__' > tp-bit.c
13 echo '# define FLOAT_BIT_ORDER_MISMATCH' >> tp-bit.c
14 echo '#endif' >> tp-bit.c
15 echo '#if __LDBL_MANT_DIG__ == 113' >> tp-bit.c
16 echo '#define QUIET_NAN_NEGATED' >> dp-bit.c
17 echo '# define TFLOAT' >> tp-bit.c
18 cat $(srcdir)/config/fp-bit.c >> tp-bit.c
19 echo '#endif' >> tp-bit.c
21 # This arranges for us to extract the built-in specs of the compiler
22 # into specs.install. It's this file that we're going to install as
23 # specs. Howver, at toolchain build time, we must use specs that
24 # enforce the defaults that the compiler expects, namely, the o32 ABI,
25 # instead of n32, that we want to use as the default post install.
28 # Changing the build-time default ABI from n32 to o32
29 # The post-install default ABI will remain n32
30 @if test "x`grep '!mabi=\*:-mabi=n32' specs.install`" = \
31 "x%{!mabi=*:-mabi=n32}"; then \
32 sed 's,\(!mabi=\*:-mabi\)=n32,\1=32,' < specs.install > $@ ; \
34 echo failed, gcc/config/mips/t-linux64 needs updating >&2; \
38 # This arranges for anyone who uses gcc -print-multi-lib post
39 # installation to get lists of options for each multilib to get
40 # options that actually work.
41 MULTILIB_EXTRA_OPTS = mabi-fake-default
42 CRTSTUFF_T_CFLAGS = -mabi-fake-default
43 CRTSTUFF_T_CFLAGS_S = -mabi-fake-default