Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / security / gnupg / hacks.mk
blob55827140327157749bf5394cc11fd1b6cdc264e8
1 # $NetBSD: hacks.mk,v 1.4 2007/02/22 19:27:07 wiz Exp $
3 .if !defined(GNUPG_HACKS_MK)
4 GNUPG_HACKS_MK= # defined
6 ### workaround for a GCC optimizer bug on sparc:
7 ### drop any -mcpu flag
8 ###
9 .if ${MACHINE_ARCH} == "sparc"
10 PKG_HACKS+= mcpu
11 BUILDLINK_TRANSFORM+= rm:-mcpu=.*
12 .endif
14 # Turn off optimization in CFLAGS for AIX. Otherwise
15 # decryption fails with, "Rijndael-128 test encryption failed."
16 # at runtime.
17 .if ${OPSYS} == "AIX"
18 PKG_HACKS+= aix-codegen
19 CFLAGS:= -O0 ${CFLAGS:C/-O[0-9]?//g}
20 .endif
22 .endif