This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A config patch


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]