| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile.common,v 1.25 2022/12/01 21:26:00 nros Exp $ | | 1 | # $NetBSD: Makefile.common,v 1.26 2023/01/08 08:13:31 tsutsui Exp $ |
2 | # used by audio/qt6-qtspeech/Makefile | | 2 | # used by audio/qt6-qtspeech/Makefile |
3 | # used by databases/qt6-odbc/Makefile | | 3 | # used by databases/qt6-odbc/Makefile |
4 | # used by databases/qt6-psql/Makefile | | 4 | # used by databases/qt6-psql/Makefile |
5 | # used by devel/qt6-qt5compat/Makefile | | 5 | # used by devel/qt6-qt5compat/Makefile |
6 | # used by devel/qt6-qttools/Makefile | | 6 | # used by devel/qt6-qttools/Makefile |
7 | # used by graphics/qt6-qt3d/Makefile | | 7 | # used by graphics/qt6-qt3d/Makefile |
8 | # used by graphics/qt6-qtcharts/Makefile | | 8 | # used by graphics/qt6-qtcharts/Makefile |
9 | # used by graphics/qt6-qtdatavis3d/Makefile | | 9 | # used by graphics/qt6-qtdatavis3d/Makefile |
10 | # used by graphics/qt6-qtimageformats/Makefile | | 10 | # used by graphics/qt6-qtimageformats/Makefile |
11 | # used by graphics/qt6-qtlottie/Makefile | | 11 | # used by graphics/qt6-qtlottie/Makefile |
12 | # used by graphics/qt6-qtquick3d/Makefile | | 12 | # used by graphics/qt6-qtquick3d/Makefile |
13 | # used by graphics/qt6-qtquicktimeline/Makefile | | 13 | # used by graphics/qt6-qtquicktimeline/Makefile |
14 | # used by graphics/qt6-qtshadertools/Makefile | | 14 | # used by graphics/qt6-qtshadertools/Makefile |
| @@ -25,26 +25,31 @@ | | | @@ -25,26 +25,31 @@ |
25 | # used by x11/qt6-qtbase/Makefile | | 25 | # used by x11/qt6-qtbase/Makefile |
26 | | | 26 | |
27 | .include "../../meta-pkgs/qt6/Makefile.common" | | 27 | .include "../../meta-pkgs/qt6/Makefile.common" |
28 | | | 28 | |
29 | .include "../../mk/dlopen.buildlink3.mk" | | 29 | .include "../../mk/dlopen.buildlink3.mk" |
30 | BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q} | | 30 | BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:Q} |
31 | | | 31 | |
32 | USE_LANGUAGES= c c++ | | 32 | USE_LANGUAGES= c c++ |
33 | USE_TOOLS+= cmake gmake perl:build pkg-config | | 33 | USE_TOOLS+= cmake gmake perl:build pkg-config |
34 | | | 34 | |
35 | # https://doc.qt.io/qt-6/supported-platforms.html | | 35 | # https://doc.qt.io/qt-6/supported-platforms.html |
36 | GCC_REQD+= 9 | | 36 | GCC_REQD+= 9 |
37 | | | 37 | |
| | | 38 | # required for -msse2 |
| | | 39 | .if ${MACHINE_ARCH} == "i386" |
| | | 40 | CFLAGS+= -mstackrealign |
| | | 41 | .endif |
| | | 42 | |
38 | # Avoid failures to due 'register' usage in X11 headers. | | 43 | # Avoid failures to due 'register' usage in X11 headers. |
39 | CXXFLAGS+= -Wno-register | | 44 | CXXFLAGS+= -Wno-register |
40 | | | 45 | |
41 | # wcstof(3) etc. is used in C++ code. | | 46 | # wcstof(3) etc. is used in C++ code. |
42 | CFLAGS.NetBSD+= -D_NETBSD_SOURCE | | 47 | CFLAGS.NetBSD+= -D_NETBSD_SOURCE |
43 | | | 48 | |
44 | # ld: undefined symbol qt_version_tag | | 49 | # ld: undefined symbol qt_version_tag |
45 | CFLAGS.SunOS+= -DQT_NO_VERSION_TAGGING | | 50 | CFLAGS.SunOS+= -DQT_NO_VERSION_TAGGING |
46 | | | 51 | |
47 | # include/openssl/e_os2.h:283:25: error: '_Noreturn' does not name a type | | 52 | # include/openssl/e_os2.h:283:25: error: '_Noreturn' does not name a type |
48 | CXXFLAGS.SunOS+= -D_Noreturn="" | | 53 | CXXFLAGS.SunOS+= -D_Noreturn="" |
49 | | | 54 | |
50 | # for GL_GLEXT_LEGACY with GL/gl.h error, GL_ARB_shader_objects is not defined. | | 55 | # for GL_GLEXT_LEGACY with GL/gl.h error, GL_ARB_shader_objects is not defined. |