Module: Mesa
Branch: master
Commit: 0cd09585441d15ef1ff49de497008103f0b0e1ac
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=0cd09585441d15ef1ff49de497008103f0b0e1ac

Author: Emil Velikov <emil.veli...@collabora.com>
Date:   Mon Oct 16 16:40:07 2017 +0100

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-sta...@lists.freedesktop.org
Signed-off-by: Emil Velikov <emil.veli...@collabora.com>
Reviewed-by: Francisco Jerez <curroje...@riseup.net>
Reviewed-By: Aaron Watry <awa...@gmail.com>

---

 src/gallium/targets/opencl/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/targets/opencl/Makefile.am 
b/src/gallium/targets/opencl/Makefile.am
index c9d2be7afd..7f55b1a13e 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
 

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to