diff options
Diffstat (limited to 'security/gnupg1')
-rw-r--r-- | security/gnupg1/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/security/gnupg1/Makefile b/security/gnupg1/Makefile index 3c4b6408d5dc..c4f44850492d 100644 --- a/security/gnupg1/Makefile +++ b/security/gnupg1/Makefile @@ -19,9 +19,6 @@ GNU_CONFIGURE= YES MACHINE_ARCH= i586 .endif CFLAGS:= ${CFLAGS:S/-pipe//g} -.if ${CC} == "clang" -CFLAGS:= ${CFLAGS:S/$/ -std=c89/} -.endif MAN1= gpg.1 gpgv.1 gpg.ru.1 gpg-zip.1 MAN7= gnupg.7 INFO= gnupg1 @@ -39,6 +36,13 @@ OPTIONS= LDAP "LDAP keyserver interface" off \ .include <bsd.port.pre.mk> +.if ${CC} == "clang" || ${OSVERSION} >= 1000024 +CFLAGS:= ${CFLAGS:S/$/ -std=c89/} +.if (${ARCH} == "i386") +CFLAGS:= ${CFLAGS:S/$/ -fheinous-gnu-extensions/} +.endif +.endif + .if defined(WITH_LIBICONV) USE_ICONV= yes .else |