diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2012-12-27 13:57:57 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2012-12-27 13:57:57 +0000 |
commit | 7e7a3c8993f0ba663ae822aad3dde62166c5ece6 (patch) | |
tree | 5b765e2de29cd87a0034b6abb6e40786a3359201 /security/gnupg1/Makefile | |
parent | 455b893874daadd64bf2d4beaf77ff994a4dd146 (diff) |
- Fix build on more recent current.
PR: ports/173678
Submitted by: swills
Notes
Notes:
svn path=/head/; revision=309541
Diffstat (limited to 'security/gnupg1/Makefile')
-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 |