svn commit: r309541 - head/security/gnupg1

Jun Kuriyama kuriyama at FreeBSD.org
Thu Dec 27 13:57:57 UTC 2012


Author: kuriyama
Date: Thu Dec 27 13:57:57 2012
New Revision: 309541
URL: http://svnweb.freebsd.org/changeset/ports/309541

Log:
  - Fix build on more recent current.
  
  PR:		ports/173678
  Submitted by:	swills

Modified:
  head/security/gnupg1/Makefile

Modified: head/security/gnupg1/Makefile
==============================================================================
--- head/security/gnupg1/Makefile	Thu Dec 27 10:47:27 2012	(r309540)
+++ head/security/gnupg1/Makefile	Thu Dec 27 13:57:57 2012	(r309541)
@@ -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"
 
 .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


More information about the svn-ports-all mailing list