elf: Ignore LD_LIBRARY_PATH and debug env var for setuid for static
[glibc.git] / sysdeps / sparc / sparc32 / Makefile
blobb792e56710193cf1888cf2db5a43fd9cce2e1638
1 # Copyright (C) 1991-2023 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),gnulib)
19 sysdep_routines = dotmul umul $(divrem) alloca
20 endif # gnulib
22 divrem := sdiv udiv rem urem
24 # libgcc __divdi3 and __moddi3 uses .udiv and since it is also exported by
25 # libc.so linker will create PLTs for the symbol. To avoid it we strong alias
26 # the exported libc one to __wrap_.udiv and use linker option --wrap to make any
27 # call to .udiv to call the wrapper symbol.
28 libc.so-gnulib += -Wl,--wrap=.udiv
30 ifeq ($(subdir),soft-fp)
31 sparc32-quad-routines := q_add q_cmp q_cmpe q_div q_dtoq q_feq q_fge \
32 q_fgt q_fle q_flt q_fne q_itoq q_mul q_neg q_qtod q_qtoi \
33 q_qtos q_qtou q_qtoull q_qtoll q_sqrt q_stoq q_sub q_utoq \
34 q_ulltoq q_lltoq q_util
35 sysdep_routines += $(sparc32-quad-routines)
37 endif