Skip to content

Commit

Permalink
Fix Opencl build on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
HeavenVolkoff committed Oct 27, 2023
1 parent 9a4b7a6 commit ce2fe5c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/scripts/ffmpeg/scripts/45-opencl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ case "$TARGET" in
esac

mkdir -p "${PREFIX}/lib/pkgconfig"
cat << EOF >"${PREFIX}/lib/pkgconfig/OpenCL.pc"
cat <<EOF >"${PREFIX}/lib/pkgconfig/OpenCL.pc"
prefix=$PREFIX
exec_prefix=\${prefix}
libdir=\${exec_prefix}/lib
Expand All @@ -51,4 +51,6 @@ Libs: -L\${libdir} $LIBS
Libs.private: $LIBS_P
EOF

ln -s OpenCL.a "${PREFIX}/lib/libOpenCL.a"
if [ -f "${PREFIX}/lib/OpenCL.a" ] && ! [ -f "${PREFIX}/lib/libOpenCL.a" ]; then
ln -s OpenCL.a "${PREFIX}/lib/libOpenCL.a"
fi

0 comments on commit ce2fe5c

Please sign in to comment.