mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-03 18:31:04 +00:00
48b76e2d04
* sysdeps/unix/sysv/linux/mips/mips32/Makefile: Remove. * sysdeps/unix/sysv/linux/mips/mips64/n32/Makefile: Remove. * sysdeps/unix/sysv/linux/mips/mips64/n64/Makefile: Remove. * sysdeps/unix/sysv/linux/mips/configure.in: Create default_abi.make. * sysdeps/unix/sysv/linux/mips/configure: Regenerate. * sysdeps/unix/sysv/linux/mips/Makefile: Include default_abi.make. (abi-variants): Add hard and soft float versions. (abi-o32-options): Remove. (abi-o32-condition): Remove. (abi-n32-options): Remove. (abi-n32-condition): Remove. (abi-n64-options): Remove. (abi-n64-condition): Remove. (abi-o32_soft-options): New. (abi-o32_soft-condition): New. (abi-o32_hard-options): New. (abi-o32_hard-condition): New. (abi-n32_soft-options): New. (abi-n32_soft-condition): New. (abi-n32_hard-options): New. (abi-n32_hard-condition): New. (abi-n64_soft-options): New. (abi-n64_soft-condition): New. (abi-n64_hard-options): New. (abi-n64_hard-condition): New.
60 lines
1.9 KiB
Makefile
60 lines
1.9 KiB
Makefile
ifeq ($(subdir),signal)
|
|
#sysdep_routines += sigsuspend
|
|
endif
|
|
|
|
ifeq ($(subdir),misc)
|
|
sysdep_routines += cachectl cacheflush sysmips _test_and_set
|
|
|
|
sysdep_headers += sys/cachectl.h sys/sysmips.h sys/tas.h
|
|
endif
|
|
|
|
# Get value of default-abi.
|
|
include $(common-objpfx)default-abi.make
|
|
|
|
abi-variants := o32_soft o32_hard n32_soft n32_hard n64_soft n64_hard
|
|
|
|
ifeq (,$(filter $(default-abi),$(abi-variants)))
|
|
Unknown ABI, must be one of $(abi-variants)
|
|
endif
|
|
|
|
abi-includes := sgidefs.h
|
|
|
|
# _MIPS_SIM_ABI32 == 1, _MIPS_SIM_NABI32 == 2, _MIPS_SIM_ABI64 == 3
|
|
abi-o32_soft-options := -U_MIPS_SIM -D_MIPS_SIM=1 \
|
|
-D__mips_soft_float -U__mips_hard_float
|
|
abi-o32_soft-condition := defined(__mips_soft_float) \
|
|
&& (_MIPS_SIM == _MIPS_SIM_ABI32)
|
|
abi-o32_hard-options := -U_MIPS_SIM -D_MIPS_SIM=1 \
|
|
-D__mips_hard_float -U__mips_soft_float
|
|
abi-o32_hard-condition := defined(__mips_hard_float) \
|
|
&& (_MIPS_SIM == _MIPS_SIM_ABI32)
|
|
abi-n32_soft-options := -U_MIPS_SIM -D_MIPS_SIM=2 \
|
|
-D__mips_soft_float -U__mips_hard_float
|
|
abi-n32_soft-condition := defined(__mips_soft_float) \
|
|
&& (_MIPS_SIM == _MIPS_SIM_NABI32)
|
|
abi-n32_hard-options := -U_MIPS_SIM -D_MIPS_SIM=2 \
|
|
-D__mips_hard_float -U__mips_soft_float
|
|
abi-n32_hard-condition := defined(__mips_hard_float) \
|
|
&& (_MIPS_SIM == _MIPS_SIM_NABI32)
|
|
abi-n64_soft-options := -U_MIPS_SIM -D_MIPS_SIM=3 \
|
|
-D__mips_soft_float -U__mips_hard_float
|
|
abi-n64_soft-condition := defined(__mips_soft_float) \
|
|
&& (_MIPS_SIM == _MIPS_SIM_ABI64)
|
|
abi-n64_hard-options := -U_MIPS_SIM -D_MIPS_SIM=3 \
|
|
-D__mips_hard_float -U__mips_soft_float
|
|
abi-n64_hard-condition := defined(__mips_hard_float) \
|
|
&& (_MIPS_SIM == _MIPS_SIM_ABI64)
|
|
|
|
ifeq ($(subdir),elf)
|
|
ifeq ($(build-shared),yes)
|
|
# This is needed for DSO loading from static binaries.
|
|
sysdep-dl-routines += dl-static
|
|
sysdep_routines += dl-static
|
|
sysdep-rtld-routines += dl-static
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(subdir),stdlib)
|
|
gen-as-const-headers += ucontext_i.sym
|
|
endif
|