-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a patch for libglvnd support (Bumblebee-Project/Bumblebee#845) git-svn-id: file:///srv/repos/svn-community/svn@214085 9fca08f4-af9d-4005-b8df-a31f2cc04f65
- Loading branch information
lcarlier
authored and
svntogit
committed
Feb 27, 2017
1 parent
1762f8b
commit a9569bd
Showing
2 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From c3ccbb7f6dd00038b1cb328898a29583e3a6c9be Mon Sep 17 00:00:00 2001 | ||
From: SolarAquarion <shlomochoina@gmail.com> | ||
Date: Sun, 19 Feb 2017 16:53:09 -0500 | ||
Subject: [PATCH] adding workaround for libglvnd | ||
|
||
--- | ||
src/optirun.c | 6 +++++- | ||
1 file changed, 5 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/src/optirun.c b/src/optirun.c | ||
index 65c83d4..ec72057 100644 | ||
--- a/src/optirun.c | ||
+++ b/src/optirun.c | ||
@@ -203,7 +203,11 @@ static int run_primus(int argc, char **argv) { | ||
|
||
/* primus starts the X server when needed, fixes long-standing fork issue */ | ||
setenv("BUMBLEBEE_SOCKET", bb_config.socket_path, 1); | ||
- | ||
+ | ||
+/* primus needs this variable workaround for libglvnd enabled mesa */ | ||
+ | ||
+ setenv("__GLVND_DISALLOW_PATCHING", "1", 0); | ||
+ | ||
/* set LD_LIBRARY_PATH to primus_ld_path plus ld_path plus current LD_LIBRARY_PATH */ | ||
setenv("PRIMUS_DISPLAY", bb_config.x_display, 0); | ||
char *ldpath_cur = getenv("LD_LIBRARY_PATH"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters