cipher/Makefile and IRIX $CFLAGS

Christoph Moench-Tegeder cmt at rz.uni-karlsruhe.de
Tue May 13 00:13:02 CEST 2003


SGI's C compiler for IRIX takes options like -OPT:Olimit=2000, these
options get broken by the sed script in target tiger.o.
A kind of temporary fix (or workaround, or such a like) is patching
Makefile.am (and calling automake) and/or Makefile.in.
For those who stumble accross the same issue and perhaps use in
the official version, here are the patches:


--- cipher/Makefile.am.orig	Thu May  8 09:52:58 2003
+++ cipher/Makefile.am	Thu May  8 09:54:04 2003
@@ -60,4 +60,4 @@
 libcipher_a_LIBADD = @IDEA_O@ @TIGER_O@ @SHA512_O@
 
 tiger.o: $(srcdir)/tiger.c
-	`echo $(COMPILE) -c $(srcdir)/tiger.c | sed -e 's/-O[2-9s]*/-O1/g' `
+	`echo $(COMPILE) -c $(srcdir)/tiger.c | sed -e 's/-O[2-9s]/-O1/g' `

--- cipher/Makefile.in.orig	Thu May  8 09:52:52 2003
+++ cipher/Makefile.in	Thu May  8 09:54:20 2003
@@ -530,7 +530,7 @@
 
 
 tiger.o: $(srcdir)/tiger.c
-	`echo $(COMPILE) -c $(srcdir)/tiger.c | sed -e 's/-O[2-9s]*/-O1/g' `
+	`echo $(COMPILE) -c $(srcdir)/tiger.c | sed -e 's/-O[2-9s]/-O1/g' `
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
 .NOEXPORT:


Regards,
Christoph

-- 
Spare Space




More information about the Gnupg-devel mailing list