1 # Copyright (C) 1993-2024 Free Software Foundation, Inc.
2 # This file is part of the GNU C Library.
4 # The GNU C Library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2.1 of the License, or (at your option) any later version.
9 # The GNU C Library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with the GNU C Library. If not, see
16 # <https://www.gnu.org/licenses/>.
18 ifeq ($(subdir
),debug
)
19 # Consider making this GCC's default...
20 CFLAGS-backtrace.c
= -fasynchronous-unwind-tables
24 sysdep_routines
+= _mcount
27 ifeq ($(subdir
),gnulib
)
28 sysdep_routines
+= divl divlu divq divqu reml remlu remq remqu
31 ifeq ($(subdir
),string
)
32 sysdep_routines
+= stxcpy stxncpy
36 # The ld.so startup code cannot use literals until it self-relocates.
37 CFLAGS-rtld.c
= -mbuild-constants
41 # The fma routines rely on inexact being raised for correct results.
42 CFLAGS-s_fma.c
= -mieee-with-inexact
43 CFLAGS-s_fmaf.c
= -mieee-with-inexact
44 # This test tries to check for inexact being raised by arithmetic.
45 CFLAGS-test-misc.c
+= -mieee-with-inexact
46 # Avoid "conflicting types for built-in function" warnings
47 CFLAGS-s_isnan.c
+= -fno-builtin-isnanf
50 # Build everything with full IEEE math support, and with dynamic rounding;
51 # there are a number of math routines that are defined to work with the
52 # "current" rounding mode, and it's easiest to set this with all of them.
53 sysdep-CFLAGS
+= -mieee
-mfp-rounding-mode
=d
55 # Software floating-point emulation.
57 ifeq ($(subdir
),soft-fp
)
58 sysdep_routines
+= ots_add ots_sub ots_mul ots_div ots_cmp ots_cmpe \
59 ots_cvtxq ots_cvtqx ots_cvtqux ots_cvttx ots_cvtxt ots_nintxq \
64 CPPFLAGS
+= -I..
/soft-fp