targets/opencl: don't hardcode the icd file install to /etc/...
authorEmil Velikov <emil.velikov@collabora.com>
Mon, 16 Oct 2017 15:40:07 +0000 (16:40 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 8 Nov 2017 14:10:07 +0000 (14:10 +0000)
commit0cd09585441d15ef1ff49de497008103f0b0e1ac
tree60045867433532d4b93f88acf05071bdfd026d8d
parent01d91b3718131f9d01908afebf2b925df366312a
targets/opencl: don't hardcode the icd file install to /etc/...

Use $(sysconfdir) instead of hardcoding /etc.

While the OpenCL spec expects the file in /etc, people building their
stack can override that, esp. !Linux users.

Furthermore this removes a fundamental violation, which results in the
system file being overwritten even as one explicitly sets --prefix
and/or DESTDIR.

Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
Reviewed-By: Aaron Watry <awatry@gmail.com>
src/gallium/targets/opencl/Makefile.am