Blame sysdeps/m68k/Makefile

Packit 6c4009
# Copyright (C) 1993-2018 Free Software Foundation, Inc.
Packit 6c4009
# This file is part of the GNU C Library.
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
# The mpn functions need this.  All existing 68k ports use MIT syntax.  If
Packit 6c4009
# a new port wants to use Motorola or Sony syntax, it can redefine this
Packit 6c4009
# variable.
Packit 6c4009
ifndef m68k-syntax-flag
Packit 6c4009
m68k-syntax-flag = -DMIT_SYNTAX
Packit 6c4009
endif
Packit 6c4009
Packit 6c4009
asm-CPPFLAGS += $(m68k-syntax-flag)
Packit 6c4009
Packit 6c4009
pic-ccflag = -fpic
Packit 6c4009
Packit 6c4009
ifeq ($(subdir),csu)
Packit 6c4009
# Make sure gcrt1.o uses the large PIC model
Packit 6c4009
CFLAGS-gmon-start.c := -fPIC
Packit 6c4009
ifeq ($(build-pie-default),yes)
Packit 6c4009
# Override default PIE
Packit 6c4009
ASFLAGS-.o += -fno-pie
Packit 6c4009
endif
Packit 6c4009
endif
Packit 6c4009
Packit 6c4009
ifeq ($(subdir),setjmp)
Packit 6c4009
# Make sure setjmp.c is compiled with a frame pointer
Packit 6c4009
CFLAGS-setjmp.c := -fno-omit-frame-pointer
Packit 6c4009
endif
Packit 6c4009
Packit 6c4009
ifeq ($(subdir),elf)
Packit 6c4009
CFLAGS-rtld.c += -Wno-uninitialized -Wno-unused
Packit 6c4009
endif
Packit 6c4009
Packit 6c4009
ifeq ($(subdir),gmon)
Packit 6c4009
CFLAGS-mcount.c += -Wno-frame-address
Packit 6c4009
endif