Patch for 0.9.11 WRT -Os in egcs/gcc

Ollivier Robert roberto at keltia.freenix.fr
Mon Sep 6 22:51:01 CEST 1999


egcs/gcc added a '-Os' optmisation option. When compiling with it, the sed
script in cipher/Makefile.in does the wrong thing and you end up with '-O1s'.

Here is a patch. I didn't change the other -- commented out -- occurrences.

--- cipher/Makefile.in.old	Fri Sep  3 10:10:33 1999
+++ cipher/Makefile.in	Mon Sep  6 21:41:36 1999
@@ -501,10 +501,10 @@
 
 tiger: $(srcdir)/tiger.c
 	`echo $(COMPILE) $(DYNLINK_MOD_CFLAGS) -o tiger $(srcdir)/tiger.c | \
-	    sed -e 's/-O[2-9]*/-O1/g' `
+	    sed -e 's/-O[2-9s]*/-O1/g' `
 
 tiger.o: $(srcdir)/tiger.c
-	`echo $(COMPILE) -c $(srcdir)/tiger.c | sed -e 's/-O[2-9]*/-O1/g' `
+	`echo $(COMPILE) -c $(srcdir)/tiger.c | sed -e 's/-O[2-9s]*/-O1/g' `
 
 #twofish: $(srcdir)/twofish.c
 #	 `echo $(COMPILE) $(DYNLINK_MOD_CFLAGS) -o twofish $(srcdir)/twofish.c | \


Enjoy!
-- 
Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto at keltia.freenix.fr
The Postman hits! The Postman hits! You have new mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 376 bytes
Desc: not available
Url : /pipermail/attachments/19990906/8181e08a/attachment.bin


More information about the Gnupg-devel mailing list