diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2012-01-29 22:44:06 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2012-01-29 22:44:06 +0800 |
commit | 1d2df07282b1c76692ec95d280c6d3af097e7769 (patch) | |
tree | 4e348975279e2f7abe8156c256036fad4e6d899d | |
parent | 68b1d88beebacae6b348cef1584e533cc1e595dd (diff) | |
download | freebsd-ports-gnome-1d2df07282b1c76692ec95d280c6d3af097e7769.tar.gz freebsd-ports-gnome-1d2df07282b1c76692ec95d280c6d3af097e7769.tar.zst freebsd-ports-gnome-1d2df07282b1c76692ec95d280c6d3af097e7769.zip |
- Fix build on 10-current (i386) [1]
- Fix build with clang by using CFLAGS+=-std=c89.
PR: ports/163898 [1]
Submitted by: swills [1]
-rw-r--r-- | security/gnupg1/Makefile | 3 | ||||
-rw-r--r-- | security/gnupg1/files/patch-config.links | 9 |
2 files changed, 12 insertions, 0 deletions
diff --git a/security/gnupg1/Makefile b/security/gnupg1/Makefile index d9c5cbe0f55a..ae9a96fc8cf0 100644 --- a/security/gnupg1/Makefile +++ b/security/gnupg1/Makefile @@ -23,6 +23,9 @@ 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 diff --git a/security/gnupg1/files/patch-config.links b/security/gnupg1/files/patch-config.links index d5ab5b9dbb7e..7b59e4da6aa5 100644 --- a/security/gnupg1/files/patch-config.links +++ b/security/gnupg1/files/patch-config.links @@ -1,5 +1,14 @@ --- mpi/config.links.orig Thu Apr 24 20:15:58 2003 +++ mpi/config.links Sat May 10 16:29:28 2003 +@@ -40,7 +40,7 @@ + ;; + i[3467]86*-*-openbsd* | \ + i[3467]86*-*-freebsd*-elf | \ +- i[3467]86*-*-freebsd[3-9]* | \ ++ i[3467]86*-*-freebsd[1-9]* | \ + i[3467]86*-*-freebsdelf* | \ + i[3467]86*-*-netbsd* | \ + i[3467]86*-*-k*bsd*) @@ -142,6 +142,12 @@ echo '/* configured for sparc64-*netbsd */' >>./mpi/asm-syntax.h path="" |