Thu Mar 26 14:11:29 2020 UTC ()
qt5: Needs c++11 compiler


(nia)
diff -r1.40 -r1.41 pkgsrc/x11/qt5-qtbase/Makefile.common

cvs diff -r1.40 -r1.41 pkgsrc/x11/qt5-qtbase/Makefile.common (expand / switch to unified diff)

--- pkgsrc/x11/qt5-qtbase/Makefile.common 2020/03/18 21:55:23 1.40
+++ pkgsrc/x11/qt5-qtbase/Makefile.common 2020/03/26 14:11:29 1.41
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile.common,v 1.40 2020/03/18 21:55:23 tnn Exp $ 1# $NetBSD: Makefile.common,v 1.41 2020/03/26 14:11:29 nia Exp $
2# used by x11/qt5-mysql/Makefile 2# used by x11/qt5-mysql/Makefile
3# used by x11/qt5-odbc/Makefile 3# used by x11/qt5-odbc/Makefile
4# used by x11/qt5-psql/Makefile 4# used by x11/qt5-psql/Makefile
5# used by x11/qt5-qtbase/Makefile 5# used by x11/qt5-qtbase/Makefile
6# used by x11/qt5-qtcharts/Makefile 6# used by x11/qt5-qtcharts/Makefile
7# used by x11/qt5-qtconnectivity/Makefile 7# used by x11/qt5-qtconnectivity/Makefile
8# used by x11/qt5-qtdeclarative/Makefile 8# used by x11/qt5-qtdeclarative/Makefile
9# used by x11/qt5-qtdoc/Makefile 9# used by x11/qt5-qtdoc/Makefile
10# used by x11/qt5-qtgraphicaleffects/Makefile 10# used by x11/qt5-qtgraphicaleffects/Makefile
11# used by x11/qt5-qtimageformats/Makefile 11# used by x11/qt5-qtimageformats/Makefile
12# used by x11/qt5-qtlocation/Makefile 12# used by x11/qt5-qtlocation/Makefile
13# used by x11/qt5-qtmacextras/Makefile 13# used by x11/qt5-qtmacextras/Makefile
14# used by x11/qt5-qtmultimedia/Makefile 14# used by x11/qt5-qtmultimedia/Makefile
@@ -28,26 +28,29 @@ @@ -28,26 +28,29 @@
28# used by x11/qt5-qtwebkit/Makefile 28# used by x11/qt5-qtwebkit/Makefile
29# used by x11/qt5-qtwebsockets/Makefile 29# used by x11/qt5-qtwebsockets/Makefile
30# used by x11/qt5-qtx11extras/Makefile 30# used by x11/qt5-qtx11extras/Makefile
31# used by x11/qt5-qtxmlpatterns/Makefile 31# used by x11/qt5-qtxmlpatterns/Makefile
32 32
33.include "../../x11/qt5/Makefile.common" 33.include "../../x11/qt5/Makefile.common"
34 34
35.include "../../mk/dlopen.buildlink3.mk" 35.include "../../mk/dlopen.buildlink3.mk"
36BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q} 36BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q}
37 37
38USE_LANGUAGES= c gnu++11 38USE_LANGUAGES= c gnu++11
39USE_TOOLS+= gmake perl:build pkg-config 39USE_TOOLS+= gmake perl:build pkg-config
40 40
 41# C++11
 42GCC_REQD+= 4.7
 43
41# Avoid failures to due 'register' usage in X11 headers. 44# Avoid failures to due 'register' usage in X11 headers.
42CFLAGS+= -Wno-register 45CFLAGS+= -Wno-register
43 46
44# wcstof(3) etc. is used in C++ code. 47# wcstof(3) etc. is used in C++ code.
45CFLAGS.NetBSD+= -D_NETBSD_SOURCE 48CFLAGS.NetBSD+= -D_NETBSD_SOURCE
46 49
47# for GL_GLEXT_LEGACY with GL/gl.h error, GL_ARB_shader_objects is not defined. 50# for GL_GLEXT_LEGACY with GL/gl.h error, GL_ARB_shader_objects is not defined.
48BUILDLINK_TRANSFORM+= rm:-Wundef 51BUILDLINK_TRANSFORM+= rm:-Wundef
49 52
50# SunOS ld doesn't support -rpath-link 53# SunOS ld doesn't support -rpath-link
51BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,-rpath-link,${PREFIX}/qt5/lib 54BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,-rpath-link,${PREFIX}/qt5/lib
52BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,-rpath-link,${WRKSRC}/lib 55BUILDLINK_TRANSFORM.SunOS+= rm:-Wl,-rpath-link,${WRKSRC}/lib
53 56