diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2012-12-27 21:57:57 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2012-12-27 21:57:57 +0800 |
commit | 612495310e635a59b9d0e24cc8ef4de434af4dd3 (patch) | |
tree | 5b765e2de29cd87a0034b6abb6e40786a3359201 /security | |
parent | 22eab0b41f77f02487f37462caa73a09ab6b1ade (diff) | |
download | freebsd-ports-gnome-612495310e635a59b9d0e24cc8ef4de434af4dd3.tar.gz freebsd-ports-gnome-612495310e635a59b9d0e24cc8ef4de434af4dd3.tar.zst freebsd-ports-gnome-612495310e635a59b9d0e24cc8ef4de434af4dd3.zip |
- Fix build on more recent current.
PR: ports/173678
Submitted by: swills
Diffstat (limited to 'security')
-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 |