This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
[PATCH] Use -fPIC for s390 libpthread_nonshared.a
- From: GOTO Masanori <gotom at debian dot or dot jp>
- To: libc-alpha at sources dot redhat dot com
- Cc: gotom at debian dot or dot jp
- Date: Fri, 03 Dec 2004 00:32:13 +0900
- Subject: [PATCH] Use -fPIC for s390 libpthread_nonshared.a
This patch changes to use -fPIC instead of -fpic for the object that
is put into libpthread_nonshared.a on s390. Some applications (lam)
cannot be built with libpthread_nonshared.a which is compiled with
-fpic. Note that libc_nonshared.a on s390 is already built with -fPIC.
Regards,
-- gotom
linuxthreads:
2004-12-02 GOTO Masanori <gotom@debian.or.jp>
* sysdeps/s390/Makefile: Use -fPIC for nonshared objects.
Index: linuxthreads/sysdeps/s390/Makefile
===================================================================
RCS file: /cvs/glibc/libc/linuxthreads/sysdeps/s390/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- linuxthreads/sysdeps/s390/Makefile 5 Jan 2003 05:08:34 -0000 1.1
+++ linuxthreads/sysdeps/s390/Makefile 2 Dec 2004 01:58:10 -0000
@@ -3,4 +3,9 @@
endif
ifeq ($(subdir),linuxthreads)
libpthread-routines += ptw-sysdep
+object-suffixes-left := $(libpthread-nonshared)
+define o-iterator-doit
+$(objpfx)$o.os: pic-ccflag = -fPIC
+endef
+include $(o-iterator)
endif
nptl:
2004-12-02 GOTO Masanori <gotom@debian.or.jp>
* sysdeps/s390/Makefile: Use -fPIC for nonshared objects.
Index: nptl/sysdeps/s390/Makefile
===================================================================
RCS file: /cvs/glibc/libc/nptl/sysdeps/s390/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- nptl/sysdeps/s390/Makefile 5 Feb 2003 09:22:43 -0000 1.1
+++ nptl/sysdeps/s390/Makefile 2 Dec 2004 01:58:10 -0000
@@ -1,4 +1,4 @@
-# Copyright (C) 2003 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2004 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
@@ -22,4 +22,9 @@
ifeq ($(subdir),nptl)
libpthread-routines += ptw-sysdep
+object-suffixes-left := $(libpthread-nonshared)
+define o-iterator-doit
+$(objpfx)$o.os: pic-ccflag = -fPIC
+endef
+include $(o-iterator)
endif