summaryrefslogtreecommitdiff
path: root/security/libgcrypt
diff options
context:
space:
mode:
authorseb <seb>2008-03-16 20:14:38 +0000
committerseb <seb>2008-03-16 20:14:38 +0000
commitf2c2ab2668869e1286fe8bcd0e1c1e0a266f2b23 (patch)
tree459cea5be7f4261458e4d97c56ce7958f49ae33c /security/libgcrypt
parentb8e7c79411e73c5249e9fdb5e9968b5474d37f92 (diff)
downloadpkgsrc-f2c2ab2668869e1286fe8bcd0e1c1e0a266f2b23.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