diff options
author | Guilherme Amadio <amadio@gentoo.org> | 2021-04-23 13:13:10 +0200 |
---|---|---|
committer | Guilherme Amadio <amadio@gentoo.org> | 2021-04-23 13:13:10 +0200 |
commit | 7c3943366bf27530de6b2a09667712420eb65f22 (patch) | |
tree | e1fed0dbe8d6aaea0446838648becb1ca6b72c5b /dev-util | |
parent | dev-util/intel-ocl-sdk: fix symlinks on prefix (diff) | |
download | gentoo-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')
-rw-r--r-- | dev-util/intel-ocl-sdk/intel-ocl-sdk-4.4.0.117-r3.ebuild | 4 |
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 } |