* sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.

This commit is contained in:
Andreas Schwab 2003-01-05 17:16:17 +00:00
parent c52a5fb98e
commit c711d9d22a
4 changed files with 16 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2003-01-05 Andreas Schwab <schwab@suse.de>
* sysdeps/m68k/Makefile (CFLAGS-.oS): Append -fPIC.
2003-01-05 Kaz Kojima <kkojima@rr.iij4u.or.jp>
* sysdeps/unix/sysv/linux/sh/clone.S (__clone): Use

View File

@ -1,5 +1,8 @@
2003-01-05 Andreas Schwab <schwab@suse.de>
* 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.

View File

@ -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

View File

@ -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