summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2014-02-15 17:53:16 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-02-15 17:39:01 +0000
commitb71f3d8bd4d6773899c1bdc903911cf240e68ead (patch)
tree38475ca50f0709e9adce821b52289282d2b372a8 /src
parent3d629c91cfa98b75c6685c2a2003e64fd1b612c4 (diff)
Backlight helper build fixes
Don't hardcode $(prefix)/libexec Fix install hook when DESTDIR is set Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=75028
Diffstat (limited to 'src')
-rw-r--r--src/backlight.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backlight.c b/src/backlight.c
index cec0ceb8..b04b5f79 100644
--- a/src/backlight.c
+++ b/src/backlight.c
@@ -199,7 +199,7 @@ static int __backlight_helper_init(struct backlight *b, char *iface)
* Either way, we have to trust that it is our backlight-helper
* that is run and that we have scrutinised it carefully.
*/
- if (stat(PREFIX_PATH "/libexec/xf86-video-intel-backlight-helper", &st))
+ if (stat(LIBEXEC_PATH "/xf86-video-intel-backlight-helper", &st))
return 0;
if ((st.st_mode & (S_IFREG | S_ISUID | S_IXUSR)) != (S_IFREG | S_ISUID | S_IXUSR)) {
@@ -219,10 +219,10 @@ static int __backlight_helper_init(struct backlight *b, char *iface)
close(fds[0]);
if (use_pkexec) {
execlp("pkexec", "pkexec",
- PREFIX_PATH "/libexec/xf86-video-intel-backlight-helper",
+ LIBEXEC_PATH "/xf86-video-intel-backlight-helper",
iface, (char *)0);
} else {
- execle(PREFIX_PATH "/libexec/xf86-video-intel-backlight-helper",
+ execle(LIBEXEC_PATH "/xf86-video-intel-backlight-helper",
"xf86-video-intel-backlight-helper",
iface, (char *)0, env);
}