summaryrefslogtreecommitdiff
path: root/security/libgcrypt
diff options
context:
space:
mode:
authorseb <seb@pkgsrc.org>2008-03-16 20:14:38 +0000
committerseb <seb@pkgsrc.org>2008-03-16 20:14:38 +0000
commitbf27fa9cf5be6b6c0f5af9e69c5e04f2a36af3c2 (patch)
tree459cea5be7f4261458e4d97c56ce7958f49ae33c /security/libgcrypt
parentb1c9ad05936a842e27f4785b79ea9bd2f287409c (diff)
downloadpkgsrc-bf27fa9cf5be6b6c0f5af9e69c5e04f2a36af3c2.tar.gz
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 (limited to 'security/libgcrypt')
-rw-r--r--security/libgcrypt/hacks.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/security/libgcrypt/hacks.mk b/security/libgcrypt/hacks.mk
index ccb3edf5f6b..215c18725a6 100644
--- a/security/libgcrypt/hacks.mk
+++ b/security/libgcrypt/hacks.mk
@@ -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 @@ post-configure:
${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