diff options
Diffstat (limited to 'sysdeps/m68k/Makefile')
-rw-r--r-- | sysdeps/m68k/Makefile | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/sysdeps/m68k/Makefile b/sysdeps/m68k/Makefile index 37a2f2de82..ac0aa0fd47 100644 --- a/sysdeps/m68k/Makefile +++ b/sysdeps/m68k/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1993-2016 Free Software Foundation, Inc. +# Copyright (C) 1993-2018 Free Software Foundation, Inc. # This file is part of the GNU C Library. # The GNU C Library is free software; you can redistribute it and/or @@ -26,15 +26,24 @@ asm-CPPFLAGS += $(m68k-syntax-flag) pic-ccflag = -fpic +ifeq ($(subdir),csu) +# Make sure gcrt1.o uses the large PIC model +CFLAGS-gmon-start.c := -fPIC +ifeq ($(build-pie-default),yes) +# Override default PIE +ASFLAGS-.o += -fno-pie +endif +endif + ifeq ($(subdir),setjmp) # Make sure setjmp.c is compiled with a frame pointer CFLAGS-setjmp.c := -fno-omit-frame-pointer endif -ifeq ($(subdir),debug) -CFLAGS-backtrace.c += -funwind-tables -endif - ifeq ($(subdir),elf) CFLAGS-rtld.c += -Wno-uninitialized -Wno-unused endif + +ifeq ($(subdir),gmon) +CFLAGS-mcount.c += -Wno-frame-address +endif |