diff options
author | Marek Szuba <marecki@gentoo.org> | 2020-04-06 23:22:31 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2020-04-07 10:08:13 +0100 |
commit | ad524a0e30e6a7841e75f0669d2fbc7cbd571c06 (patch) | |
tree | 44ede7be3926da535e7a3c953405cc832b60b850 /dev-libs/opencl-icd-loader | |
parent | media-libs/harfbuzz: stable 2.6.4 for hppa, bug #699666 (diff) | |
download | gentoo-ad524a0e30e6a7841e75f0669d2fbc7cbd571c06.tar.gz gentoo-ad524a0e30e6a7841e75f0669d2fbc7cbd571c06.tar.bz2 gentoo-ad524a0e30e6a7841e75f0669d2fbc7cbd571c06.zip |
dev-libs/opencl-icd-loader: build with -fno-common / gcc-10
Just force -fcommon in CFLAGS if tests are enabled (loader code hasn't
got any problems with -fno-common) until the next release, the problem has
already been fixed upstream but the patch is rather large.
Closes: https://bugs.gentoo.org/716410
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'dev-libs/opencl-icd-loader')
-rw-r--r-- | dev-libs/opencl-icd-loader/opencl-icd-loader-2020.03.13.ebuild | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/dev-libs/opencl-icd-loader/opencl-icd-loader-2020.03.13.ebuild b/dev-libs/opencl-icd-loader/opencl-icd-loader-2020.03.13.ebuild index 354e60244a5a..617e29a65dd2 100644 --- a/dev-libs/opencl-icd-loader/opencl-icd-loader-2020.03.13.ebuild +++ b/dev-libs/opencl-icd-loader/opencl-icd-loader-2020.03.13.ebuild @@ -4,7 +4,7 @@ EAPI=7 CMAKE_ECLASS=cmake -inherit cmake-multilib +inherit cmake-multilib flag-o-matic MY_PN="OpenCL-ICD-Loader" MY_P="${MY_PN}-${PV}" @@ -26,6 +26,15 @@ RDEPEND="${DEPEND} S="${WORKDIR}/${MY_P}" +src_prepare() { + # Until the next upstream release. Bug #716410 + if use test; then + append-cflags $(test-flags-CC -fcommon) + fi + + cmake_src_prepare +} + multilib_src_configure() { local ocl_dir="/usr/$(get_libdir)/OpenCL/vendors/${PN}" |