Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Dec 2012 13:57:57 +0000 (UTC)
From:      Jun Kuriyama <kuriyama@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r309541 - head/security/gnupg1
Message-ID:  <201212271357.qBRDvvhb090147@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212271357.qBRDvvhb090147>