pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/cint When building with clang, ignore return type...
details: https://anonhg.NetBSD.org/pkgsrc/rev/5501ebf3a20f
branches: trunk
changeset: 356154:5501ebf3a20f
user: joerg <joerg%pkgsrc.org@localhost>
date: Mon Dec 19 13:34:53 2016 +0000
description:
When building with clang, ignore return type warnings.
diffstat:
lang/cint/Makefile | 7 ++++++-
lang/cint/distinfo | 3 ++-
lang/cint/patches/patch-readline_Makefile.base | 13 +++++++++++++
3 files changed, 21 insertions(+), 2 deletions(-)
diffs (52 lines):
diff -r cf2e774874e3 -r 5501ebf3a20f lang/cint/Makefile
--- a/lang/cint/Makefile Mon Dec 19 13:33:43 2016 +0000
+++ b/lang/cint/Makefile Mon Dec 19 13:34:53 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2016/09/28 10:00:27 kamil Exp $
+# $NetBSD: Makefile,v 1.33 2016/12/19 13:34:53 joerg Exp $
DISTNAME= cint-5.16.19-source
PKGNAME= ${DISTNAME:S/-source//}
@@ -37,6 +37,11 @@
BUILD_TARGET= # empty string required (override "all")
+.include "../../mk/compiler.mk"
+.if !empty(PKGSRC_COMPILER:Mclang)
+MAKE_ENV+= CFLAGS_NO_RETURN_TYPE=-Wno-error=return-type
+.endif
+
INSTALLATION_DIRS+= bin cint cint/lib share/doc/cint
INSTALLATION_DIRS+= ${PKGMANDIR}/man1 ${PKGMANDIR}/man2 ${PKGMANDIR}/man3
diff -r cf2e774874e3 -r 5501ebf3a20f lang/cint/distinfo
--- a/lang/cint/distinfo Mon Dec 19 13:33:43 2016 +0000
+++ b/lang/cint/distinfo Mon Dec 19 13:34:53 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.10 2016/09/28 10:00:27 kamil Exp $
+$NetBSD: distinfo,v 1.11 2016/12/19 13:34:53 joerg Exp $
SHA1 (cint-5.16.19-source.tar.gz) = 22307e50b4414f4e6e70d791d3ccfe2cc2163f59
RMD160 (cint-5.16.19-source.tar.gz) = ff7deb0cdf5534fb8849eaf5febf9e57117066ff
@@ -21,3 +21,4 @@
SHA1 (patch-tool_ifdef_get.c) = 6719537bd515260095a7d15a2e870df3ccd244eb
SHA1 (patch-tool_ifdef_ifdef.cxx) = 62770d0fb6556ac2efc16f692c15c6acc38174ab
SHA1 (patch-tool_makecint.cxx) = b81d05e92dd089ad7a4d85160266fa3d19a1dab4
+SHA1 (patch-readline_Makefile.base) = ac6656bdcd92ccb38f8ec200fb8780cdb2dc0000
diff -r cf2e774874e3 -r 5501ebf3a20f lang/cint/patches/patch-readline_Makefile.base
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/cint/patches/patch-readline_Makefile.base Mon Dec 19 13:34:53 2016 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-readline_Makefile.base,v 1.1 2016/12/19 13:34:53 joerg Exp $
+
+--- readline/Makefile.base.orig 2015-09-21 17:55:28.000000000 +0000
++++ readline/Makefile.base
+@@ -46,7 +46,7 @@ READLINE_DEFINES = $(TYPES) -DVI_MODE
+ # DEBUG_FLAGS = -O
+ DEBUG_FLAGS = $(OPTIMIZE)
+ LDFLAGS = $(DEBUG_FLAGS)
+-CFLAGS = $(DEBUG_FLAGS) $(USG) -I.
++CFLAGS = $(DEBUG_FLAGS) $(USG) -I. ${CFLAGS_NO_RETURN_TYPE}
+
+ # A good alternative is gcc -traditional.
+ #CC = gcc -traditional
Home |
Main Index |
Thread Index |
Old Index