From c711d9d22a2ca6730116b7398870ed1e7be23ce2 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 5 Jan 2003 17:16:17 +0000 Subject: [PATCH] * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC. --- ChangeLog | 4 ++++ linuxthreads/ChangeLog | 3 +++ linuxthreads/sysdeps/m68k/Makefile | 7 +++++++ sysdeps/m68k/Makefile | 8 ++------ 4 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 linuxthreads/sysdeps/m68k/Makefile diff --git a/ChangeLog b/ChangeLog index f89080d2a7..7305623933 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2003-01-05 Andreas Schwab + + * sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC. + 2003-01-05 Kaz Kojima * sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index ebf9b56285..e4b4ae25cf 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,5 +1,8 @@ 2003-01-05 Andreas Schwab + * sysdeps/m68k/Makefile: New file, use -fPIC for nonshared + objects. + * sysdeps/unix/sysv/linux/m68k/sysdep-cancel.h (SINGLE_THREAD_P): Fix for PIC. (CENABLE): Likewise. diff --git a/linuxthreads/sysdeps/m68k/Makefile b/linuxthreads/sysdeps/m68k/Makefile new file mode 100644 index 0000000000..1cd27d44ca --- /dev/null +++ b/linuxthreads/sysdeps/m68k/Makefile @@ -0,0 +1,7 @@ +ifeq ($(subdir), linuxthreads) +object-suffixes-left := $(libpthread-nonshared) +define o-iterator-doit +$(objpfx)$o.os: pic-ccflag = -fPIC +endef +include $(o-iterator) +endif diff --git a/sysdeps/m68k/Makefile b/sysdeps/m68k/Makefile index c44b2d196c..68dc258406 100644 --- a/sysdeps/m68k/Makefile +++ b/sysdeps/m68k/Makefile @@ -1,4 +1,4 @@ -# Copyright (C) 1993, 1994, 1996, 1997 Free Software Foundation, Inc. +# Copyright (C) 1993, 1994, 1996, 1997, 2003 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,6 +26,7 @@ endif asm-CPPFLAGS += $(m68k-syntax-flag) pic-ccflag = -fpic +CFLAGS-.oS += -fPIC # Make sure setjmp.c is compiled with a frame pointer CFLAGS-setjmp.c := -fno-omit-frame-pointer @@ -36,8 +37,3 @@ long-double-fcts = yes ifeq ($(subdir),elf) CFLAGS-rtld.c += -Wno-uninitialized -Wno-unused endif - -ifeq ($(subdir),math) -# Avoid a bug in gcc -CFLAGS-s_copysignl.c += -mnobitfield -endif -- 2.11.4.GIT