]>
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 | ||
20 | ifeq ($(subdir),nptl) | |
25a368f2 JM |
21 | CPPFLAGS-pt-crti.S += $(pic-ccflag) |
22 | CPPFLAGS-crtn.S += $(pic-ccflag) | |
32a61531 TV |
23 | endif |
24 | ||
c6e2897b | 25 | ASFLAGS-.os += $(pic-ccflag) |
9d7a3741 L |
26 | # libc.a and libc_p.a must be compiled with -fPIE/-fpie for static PIE. |
27 | ASFLAGS-.o += $(pie-default) | |
28 | ASFLAGS-.op += $(pie-default) | |
0bd95672 MF |
29 | |
30 | ifeq ($(subdir),elf) | |
31 | ifneq ($(o32-fpabi),) | |
32 | tests += tst-abi-interlink | |
33 | ||
34 | fpabi-modules-names = | |
35 | fpabi_list = | |
36 | ifneq (,$(filter $(o32-fpabi),32 xx xxo)) | |
37 | fpabi-modules-names += tst-abi-fp32mod | |
38 | CFLAGS-tst-abi-fp32mod.c += -mfp32 | |
39 | endif | |
40 | ifneq (,$(filter $(o32-fpabi),xx)) | |
41 | fpabi-modules-names += tst-abi-fpxxmod | |
42 | CFLAGS-tst-abi-fpxxmod.c += -mfpxx -mno-odd-spreg | |
43 | endif | |
44 | ifneq (,$(filter $(o32-fpabi),xx xxo)) | |
578d0805 | 45 | ifeq ($(has-modd-spreg),yes) |
0bd95672 MF |
46 | fpabi-modules-names += tst-abi-fpxxomod |
47 | CFLAGS-tst-abi-fpxxomod.c += -mfpxx -modd-spreg | |
48 | endif | |
578d0805 | 49 | endif |
0bd95672 | 50 | ifneq (,$(filter $(o32-fpabi),xx 64a)) |
578d0805 | 51 | ifeq ($(has-mpf64),yes) |
0bd95672 MF |
52 | fpabi-modules-names += tst-abi-fp64amod |
53 | CFLAGS-tst-abi-fp64amod.c += -mfp64 -mno-odd-spreg | |
54 | endif | |
578d0805 | 55 | endif |
0bd95672 | 56 | ifneq (,$(filter $(o32-fpabi),xx xxo 64a 64)) |
578d0805 | 57 | ifeq ($(has-mpf64)-$(has-modd-spreg),yes-yes) |
0bd95672 MF |
58 | fpabi-modules-names += tst-abi-fp64mod |
59 | CFLAGS-tst-abi-fp64mod.c += -mfp64 -modd-spreg | |
60 | endif | |
578d0805 | 61 | endif |
0bd95672 MF |
62 | modules-names += $(fpabi-modules-names) |
63 | ||
64 | comma:=, | |
65 | empty:= | |
66 | space:=$(empty) $(empty) | |
67 | fpabi_list=$(subst $(space),$(comma),$(patsubst tst-abi-%mod,o_%,\ | |
68 | $(fpabi-modules-names))) | |
69 | CPPFLAGS-tst-abi-interlink.c += -DFPABI_LIST=$(fpabi_list) | |
70 | CPPFLAGS-tst-abi-interlink.c += -DFPABI_COUNT=$(words $(fpabi-modules-names)) | |
71 | CPPFLAGS-tst-abi-interlink.c += -DFPABI_NATIVE=o_fp$(o32-fpabi) | |
72 | $(objpfx)tst-abi-interlink: $(libdl) | |
73 | $(objpfx)tst-abi-interlink.out: $(patsubst %,$(objpfx)%.so,\ | |
74 | $(fpabi-modules-names)) | |
75 | endif | |
76 | ||
77 | ifeq ($(mips-mode-switch),yes) | |
78 | ifeq ($(o32-fpabi),xx) | |
79 | tests += tst-mode-switch-1 tst-mode-switch-2 tst-mode-switch-3 | |
80 | $(objpfx)tst-mode-switch-1: $(shared-thread-library) | |
81 | $(objpfx)tst-mode-switch-2: $(shared-thread-library) | |
82 | endif | |
83 | endif | |
84 | endif | |
edd8d70b MS |
85 | |
86 | ifeq ($(subdir),elf) | |
87 | tests += tst-undefined-weak | |
88 | modules-names += tst-undefined-weak-lib | |
89 | ||
90 | $(objpfx)tst-undefined-weak: $(objpfx)tst-undefined-weak-lib.so | |
91 | endif |