[OpenAFS-devel] Patch for StackGuard egcs on Immunix OS 6.2/7.0 (i386)

Atro Tossavainen Atro.Tossavainen@Helsinki.FI
Fri, 18 Jan 2002 16:16:24 +0200 (EET)


I've posted about this in April and September 2001.  Would the kind
folks finally please include this so I don't have to keep forgetting
about making the changes myself every time I compile a new release of
OpenAFS.

---- cut here ---- cut here ---- cut here ---- cut here ----
*** openafs-1.2.2a/src/libafs/MakefileProto.LINUX.in.old  Sat Oct 13 07:21:38 2001
--- openafs-1.2.2a/src/libafs/MakefileProto.LINUX.in      Fri Jan 18 10:01:49 2002
***************
*** 57,62 ****
--- 57,64 ----
  CCFLAGS =   -O2 -fomit-frame-pointer \
        -fno-strength-reduce -pipe -march=i486 -malign-loops=2 -malign-jumps=2 \
        -malign-functions=2
+ CCFLAGS += $(shell if $(CC) -fno-canary-all-functions -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-fno-canary-all-functions"; fi)
+ CCFLAGS += $(shell if $(CC) -mno-terminator-canary -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-mno-terminator-canary"; fi)
  DEFINES = -D__KERNEL__  -DCPU=586 -DKERNEL -D_KERNEL -DMODULE ${SMP_DEF} ${KDEFINES}
  <alpha_linux_22 alpha_linux_24>
  CCFLAGS = -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -mno-fp-regs -ffixed-8
---- cut here ---- cut here ---- cut here ---- cut here ----

-- 
Atro Tossavainen (Mr.)               / The Institute of Biotechnology at
Systems Analyst, Techno-Amish &     / the University of Helsinki, Finland,
+358-9-19158939  UNIX Dinosaur     / employs me, but my opinions are my own.
< URL : http : / / www . iki . fi / atro . tossavainen / >

File attachments NOT welcome unless agreed to beforehand.