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>
This commit is contained in:
parent
01d91b3718
commit
0cd0958544
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue