|
Packit |
6c4009 |
# Copyright (C) 2000-2018 Free Software Foundation, Inc.
|
|
Packit |
6c4009 |
# This file is part of the GNU C Library.
|
|
Packit |
6c4009 |
# Contributed by David Huggins-Daines (dhd@debian.org)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# The GNU C Library is free software; you can redistribute it and/or
|
|
Packit |
6c4009 |
# modify it under the terms of the GNU Lesser General Public
|
|
Packit |
6c4009 |
# License as published by the Free Software Foundation; either
|
|
Packit |
6c4009 |
# version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit |
6c4009 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6c4009 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6c4009 |
# Lesser General Public License for more details.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6c4009 |
# License along with the GNU C Library. If not, see
|
|
Packit |
6c4009 |
# <http://www.gnu.org/licenses/>.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# We used to need this since the build process uses ld -r. Now we use
|
|
Packit |
6c4009 |
# ld -r --unique=.text* which does more or less the same thing, but better.
|
|
Packit |
6c4009 |
# CFLAGS-.os += -ffunction-sections
|
|
Packit |
6c4009 |
LDFLAGS-c_pic.os += -Wl,--unique=.text*
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),elf)
|
|
Packit |
6c4009 |
CFLAGS-rtld.c += -mdisable-fpregs
|
|
Packit |
6c4009 |
sysdep-dl-routines += dl-symaddr dl-fptr
|
|
Packit |
6c4009 |
# dl-fptr.c needs a complete rewrite to fix ISO C aliasing violations.
|
|
Packit |
6c4009 |
CFLAGS-dl-fptr.c = -Wno-error
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
ifeq ($(subdir),csu)
|
|
Packit |
6c4009 |
ifeq (yes,$(build-shared))
|
|
Packit |
6c4009 |
# Compatibility
|
|
Packit |
6c4009 |
ifeq (yes,$(have-protected))
|
|
Packit |
6c4009 |
CPPFLAGS-libgcc-compat.c = -DHAVE_DOT_HIDDEN
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
sysdep_routines += libgcc-compat
|
|
Packit |
6c4009 |
shared-only-routines += libgcc-compat
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# We implement a 64-bit `long double'. The standard says we can do this.
|
|
Packit |
6c4009 |
# This means our `long double' and `double' are identical.
|
|
Packit |
6c4009 |
long-double-fcts = no
|