summaryrefslogtreecommitdiff
path: root/security/gnupg/hacks.mk
blob: 0c905ab4692dd66b94c451b5419deeb99aec1096 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# $NetBSD: hacks.mk,v 1.5 2009/09/28 20:15:08 tnn Exp $

.if !defined(GNUPG_HACKS_MK)
GNUPG_HACKS_MK=	# defined

### workaround for a GCC optimizer bug on sparc:
### drop any -mcpu flag
###
.if ${MACHINE_ARCH} == "sparc"
PKG_HACKS+=		mcpu
BUILDLINK_TRANSFORM+=	rm:-mcpu=.*
.endif

# Turn off optimization in CFLAGS for AIX. Otherwise
# decryption fails with, "Rijndael-128 test encryption failed."
# at runtime.
.if ${OPSYS} == "AIX"
PKG_HACKS+=	aix-codegen
CFLAGS:=	-O0 ${CFLAGS:C/-O[0-9]?//g}
.endif

.endif