summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Amadio <amadio@gentoo.org>2021-04-23 13:13:10 +0200
committerGuilherme Amadio <amadio@gentoo.org>2021-04-23 13:13:10 +0200
commit7c3943366bf27530de6b2a09667712420eb65f22 (patch)
treee1fed0dbe8d6aaea0446838648becb1ca6b72c5b /dev-util/intel-ocl-sdk
parentdev-util/intel-ocl-sdk: fix symlinks on prefix (diff)
downloadgentoo-7c3943366bf27530de6b2a09667712420eb65f22.tar.gz
gentoo-7c3943366bf27530de6b2a09667712420eb65f22.tar.bz2
gentoo-7c3943366bf27530de6b2a09667712420eb65f22.zip
dev-util/intel-ocl-sdk: correct library path in intel64.icd on prefix
Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
Diffstat (limited to 'dev-util/intel-ocl-sdk')
-rw-r--r--dev-util/intel-ocl-sdk/intel-ocl-sdk-4.4.0.117-r3.ebuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/dev-util/intel-ocl-sdk/intel-ocl-sdk-4.4.0.117-r3.ebuild b/dev-util/intel-ocl-sdk/intel-ocl-sdk-4.4.0.117-r3.ebuild
index 41733196d8e7..a8a09683874d 100644
--- a/dev-util/intel-ocl-sdk/intel-ocl-sdk-4.4.0.117-r3.ebuild
+++ b/dev-util/intel-ocl-sdk/intel-ocl-sdk-4.4.0.117-r3.ebuild
@@ -61,6 +61,10 @@ src_prepare() {
if use system-tbb; then
rm -f "${WORKDIR}/${INTEL_CL}"/lib64/libtbb*
fi
+ # Prepend EPREFIX to library path in intel64.icd
+ if [[ -n ${EPREFIX} ]]; then
+ sed -i -e "s@^/opt@${EPREFIX}/opt@" "${WORKDIR}/${INTEL_CL}"/etc/intel64.icd
+ fi
default
}