diff options
author | Emil Velikov <[email protected]> | 2017-10-16 16:40:07 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-11-08 14:10:07 +0000 |
commit | 0cd09585441d15ef1ff49de497008103f0b0e1ac (patch) | |
tree | 60045867433532d4b93f88acf05071bdfd026d8d /src/gallium/targets/opencl | |
parent | 01d91b3718131f9d01908afebf2b925df366312a (diff) |
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: [email protected]
Signed-off-by: Emil Velikov <[email protected]>
Reviewed-by: Francisco Jerez <[email protected]>
Reviewed-By: Aaron Watry <[email protected]>
Diffstat (limited to 'src/gallium/targets/opencl')
-rw-r--r-- | src/gallium/targets/opencl/Makefile.am | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/targets/opencl/Makefile.am b/src/gallium/targets/opencl/Makefile.am index c9d2be7afd0..7f55b1a13ea 100644 --- a/src/gallium/targets/opencl/Makefile.am +++ b/src/gallium/targets/opencl/Makefile.am @@ -45,7 +45,7 @@ EXTRA_lib@OPENCL_LIBNAME@_la_DEPENDENCIES = opencl.sym EXTRA_DIST = mesa.icd opencl.sym if HAVE_CLOVER_ICD -icddir = /etc/OpenCL/vendors/ +icddir = $(sysconfdir)/OpenCL/vendors/ icd_DATA = mesa.icd endif |