Skip to content
Snippets Groups Projects
Commit 9e1698b1 authored by Emil Velikov's avatar Emil Velikov
Browse files

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: default avatarEmil Velikov <emil.velikov@collabora.com>
Reviewed-by: default avatarFrancisco Jerez <currojerez@riseup.net>
Reviewed-By: default avatarAaron Watry <awatry@gmail.com>
(cherry picked from commit 0cd09585)
parent 2c6986c3
No related branches found
No related tags found
Loading
...@@ -45,7 +45,7 @@ EXTRA_lib@OPENCL_LIBNAME@_la_DEPENDENCIES = opencl.sym ...@@ -45,7 +45,7 @@ EXTRA_lib@OPENCL_LIBNAME@_la_DEPENDENCIES = opencl.sym
EXTRA_DIST = mesa.icd opencl.sym EXTRA_DIST = mesa.icd opencl.sym
if HAVE_CLOVER_ICD if HAVE_CLOVER_ICD
icddir = /etc/OpenCL/vendors/ icddir = $(sysconfdir)/OpenCL/vendors/
icd_DATA = mesa.icd icd_DATA = mesa.icd
endif endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment