This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A config patch
- To: jason at cygnus dot com (Jason Merrill)
- Subject: Re: A config patch
- From: hjl at lucon dot org (H.J. Lu)
- Date: Fri, 5 Sep 1997 19:38:19 -0700 (PDT)
- Cc: egcs at cygnus dot com, wilson at cygnus dot com, rth at cygnus dot com
>
> >>>>> Ian Lance Taylor <ian@cygnus.com> writes:
>
> > I don't understand why it is important for [ -z "$PICFLAG" ] to
> > succeed. Irix 5 doesn't set PICFLAG, but I believe --enable-shared
> > works nevertheless.
>
> Yep, works for me. It works on OSF/1, too.
>
> Jason
>
I was just informed that -fpic has to be used to compile libc.so
for glibc on Linux/alpha. If it is really the case, one of my patch
should be backed out and my Alpha PIC patch to config should be
used at least for ELF/alpha.
--
H.J. Lu (hjl@gnu.ai.mit.edu)
---
Thu Sep 4 08:11:39 1997 H.J. Lu (hjl@gnu.ai.mit.edu)
* config/alpha/elf.h (CPP_PREDEFINES): Undo -D__PIC__ -D__pic__.
Index: gcc/config/alpha/elf.h
===================================================================
RCS file: /home/work/cvs/gnu/egcs/gcc/config/alpha/elf.h,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 elf.h
--- elf.h 1997/09/04 16:46:34 1.1.1.3
+++ elf.h 1997/09/06 02:18:19
@@ -36,7 +36,7 @@
#undef CPP_PREDEFINES
#define CPP_PREDEFINES "\
-D__alpha -D__alpha__ -D__linux__ -D__linux -D_LONGLONG -Dlinux -Dunix \
--Asystem(linux) -Acpu(alpha) -Amachine(alpha) -D__ELF__ -D__PIC__ -D__pic__"
+-Asystem(linux) -Acpu(alpha) -Amachine(alpha) -D__ELF__"
#undef LINK_SPEC
#ifdef USE_GNULIBC_1