aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/m68k
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2016-04-27 12:08:38 +0200
committerAndreas Schwab <schwab@linux-m68k.org>2016-04-30 18:51:43 +0200
commit8a9ea3ccc58fd36bfee657e10e0ea225729192b2 (patch)
tree3357d611f5466e484b1b2b46a977023d976a6a68 /sysdeps/m68k
parent4816d802ff96112f7115679985d935d3444f8541 (diff)
downloadglibc-8a9ea3ccc58fd36bfee657e10e0ea225729192b2.zip
glibc-8a9ea3ccc58fd36bfee657e10e0ea225729192b2.tar.gz
glibc-8a9ea3ccc58fd36bfee657e10e0ea225729192b2.tar.bz2
m68k: use large PIC model for gcrt1.o
Diffstat (limited to 'sysdeps/m68k')
-rw-r--r--sysdeps/m68k/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/m68k/Makefile b/sysdeps/m68k/Makefile
index 37a2f2d..22a961c 100644
--- a/sysdeps/m68k/Makefile
+++ b/sysdeps/m68k/Makefile
@@ -26,6 +26,11 @@ 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
+endif
+
ifeq ($(subdir),setjmp)
# Make sure setjmp.c is compiled with a frame pointer
CFLAGS-setjmp.c := -fno-omit-frame-pointer