]>
Commit | Line | Data |
---|---|---|
df8c87f8 | 1 | ifeq ($(subdir),misc) |
7e54ab95 AJ |
2 | sysdep_headers += regdef.h fpregdef.h sys/regdef.h sys/fpregdef.h \ |
3 | sys/asm.h sgidefs.h | |
df8c87f8 UD |
4 | endif |
5 | ||
e6eb4808 | 6 | ifeq ($(subdir),setjmp) |
94f347c0 | 7 | sysdep_routines += setjmp_aux |
e6eb4808 | 8 | endif |
2cc89a49 AJ |
9 | |
10 | ifeq ($(subdir),rt) | |
11 | librt-sysdep_routines += rt-sysdep | |
d9067fca | 12 | librt-shared-only-routines += rt-sysdep |
2cc89a49 | 13 | endif |
c6e2897b | 14 | |
32a61531 | 15 | ifeq ($(subdir),csu) |
25a368f2 JM |
16 | CPPFLAGS-crti.S += $(pic-ccflag) |
17 | CPPFLAGS-crtn.S += $(pic-ccflag) | |
32a61531 TV |
18 | endif |
19 | ||
c6e2897b | 20 | ASFLAGS-.os += $(pic-ccflag) |
9d7a3741 L |
21 | # libc.a and libc_p.a must be compiled with -fPIE/-fpie for static PIE. |
22 | ASFLAGS-.o += $(pie-default) | |
23 | ASFLAGS-.op += $(pie-default) | |
0bd95672 MF |
24 | |
25 | ifeq ($(subdir),elf) | |
ef700562 AH |
26 | |
27 | # These tests fail on all mips configurations (BZ 29404) | |
28 | test-xfail-tst-audit24a = yes | |
29 | test-xfail-tst-audit24b = yes | |
30 | test-xfail-tst-audit24c = yes | |
31 | test-xfail-tst-audit24d = yes | |
32 | test-xfail-tst-audit25a = yes | |
33 | test-xfail-tst-audit25b = yes | |
34 | ||
0bd95672 MF |
35 | ifneq ($(o32-fpabi),) |
36 | tests += tst-abi-interlink | |
37 | ||
38 | fpabi-modules-names = | |
39 | fpabi_list = | |
40 | ifneq (,$(filter $(o32-fpabi),32 xx xxo)) | |
41 | fpabi-modules-names += tst-abi-fp32mod | |
42 | CFLAGS-tst-abi-fp32mod.c += -mfp32 | |
43 | endif | |
44 | ifneq (,$(filter $(o32-fpabi),xx)) | |
45 | fpabi-modules-names += tst-abi-fpxxmod | |
46 | CFLAGS-tst-abi-fpxxmod.c += -mfpxx -mno-odd-spreg | |
47 | endif | |
48 | ifneq (,$(filter $(o32-fpabi),xx xxo)) | |
578d0805 | 49 | ifeq ($(has-modd-spreg),yes) |
0bd95672 MF |
50 | fpabi-modules-names += tst-abi-fpxxomod |
51 | CFLAGS-tst-abi-fpxxomod.c += -mfpxx -modd-spreg | |
52 | endif | |
578d0805 | 53 | endif |
0bd95672 | 54 | ifneq (,$(filter $(o32-fpabi),xx 64a)) |
578d0805 | 55 | ifeq ($(has-mpf64),yes) |
0bd95672 MF |
56 | fpabi-modules-names += tst-abi-fp64amod |
57 | CFLAGS-tst-abi-fp64amod.c += -mfp64 -mno-odd-spreg | |
58 | endif | |
578d0805 | 59 | endif |
0bd95672 | 60 | ifneq (,$(filter $(o32-fpabi),xx xxo 64a 64)) |
578d0805 | 61 | ifeq ($(has-mpf64)-$(has-modd-spreg),yes-yes) |
0bd95672 MF |
62 | fpabi-modules-names += tst-abi-fp64mod |
63 | CFLAGS-tst-abi-fp64mod.c += -mfp64 -modd-spreg | |
64 | endif | |
578d0805 | 65 | endif |
0bd95672 MF |
66 | modules-names += $(fpabi-modules-names) |
67 | ||
68 | comma:=, | |
69 | empty:= | |
70 | space:=$(empty) $(empty) | |
71 | fpabi_list=$(subst $(space),$(comma),$(patsubst tst-abi-%mod,o_%,\ | |
72 | $(fpabi-modules-names))) | |
73 | CPPFLAGS-tst-abi-interlink.c += -DFPABI_LIST=$(fpabi_list) | |
74 | CPPFLAGS-tst-abi-interlink.c += -DFPABI_COUNT=$(words $(fpabi-modules-names)) | |
75 | CPPFLAGS-tst-abi-interlink.c += -DFPABI_NATIVE=o_fp$(o32-fpabi) | |
0bd95672 MF |
76 | $(objpfx)tst-abi-interlink.out: $(patsubst %,$(objpfx)%.so,\ |
77 | $(fpabi-modules-names)) | |
78 | endif | |
79 | ||
80 | ifeq ($(mips-mode-switch),yes) | |
81 | ifeq ($(o32-fpabi),xx) | |
82 | tests += tst-mode-switch-1 tst-mode-switch-2 tst-mode-switch-3 | |
0bd95672 MF |
83 | endif |
84 | endif | |
85 | endif | |
edd8d70b MS |
86 | |
87 | ifeq ($(subdir),elf) | |
88 | tests += tst-undefined-weak | |
89 | modules-names += tst-undefined-weak-lib | |
90 | ||
91 | $(objpfx)tst-undefined-weak: $(objpfx)tst-undefined-weak-lib.so | |
92 | endif |