pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security/libgcrypt Add a hack for GCC 3.* failing to c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/84ec673ce064
branches:  trunk
changeset: 539916:84ec673ce064
user:      seb <seb%pkgsrc.org@localhost>
date:      Sun Mar 16 20:14:38 2008 +0000

description:
Add a hack for GCC 3.* failing to compile asm() call in
cipher/rijndael.c:do_padlock(): seen with GCC 3.3.3 on NetBSD.

diffstat:

 security/libgcrypt/hacks.mk |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 98374eaddca0 -r 84ec673ce064 security/libgcrypt/hacks.mk
--- a/security/libgcrypt/hacks.mk       Sun Mar 16 19:12:41 2008 +0000
+++ b/security/libgcrypt/hacks.mk       Sun Mar 16 20:14:38 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: hacks.mk,v 1.2 2004/12/21 08:57:48 grant Exp $
+# $NetBSD: hacks.mk,v 1.3 2008/03/16 20:14:38 seb Exp $
 
 # config.h #defines socklen_t if it is not defined, but libgcrypt does
 # not propogate this to the installed gcrypt.h, so packages using it
@@ -10,3 +10,10 @@
                ${MV} ${WRKSRC}/src/gcrypt.h ${WRKSRC}/src/gcrypt.h.old; \
                ${SED} -e "s,^/\* socklen_t \*/,$$socklen," \
                        ${WRKSRC}/src/gcrypt.h.old > ${WRKSRC}/src/gcrypt.h
+
+# GCC 3.x (at least 3.3.3 on NetBSD) fails to compile asm() call in
+# cipher/rijndael.c:do_padlock()
+.include "../../mk/compiler.mk"
+.if !empty(CC_VERSION:Mgcc-3.*)
+CFLAGS+=        -fomit-frame-pointer
+.endif



Home | Main Index | Thread Index | Old Index