Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a cludge to make sure that libGL.* libraries are available to

PBIs on 10.x
  • Loading branch information...
commit f24f00ed44400abc90aa7fcf2cda06199843017d 1 parent 999faef
@kmoore134 kmoore134 authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 src-sh/pbi-manager10/pbi-manager
View
15 src-sh/pbi-manager10/pbi-manager
@@ -4786,6 +4786,18 @@ pbid_init() {
do_pbid
}
+# This is a crude hack, but we need to copy libGL* to a location outside
+# of /usr/local for PBIs to be able to access them
+check_populate_opengl()
+{
+ local lG
+ for i in `ls /usr/local/lib/libGl.* /usr/local/lib/libGL.* /usr/local/lib/libGLU.* 2>/dev/null`
+ do
+ lG=`basename $i`
+ cp ${i} /usr/lib/${lG}
+ done
+}
+
# Start the PBID daemon
do_pbid() {
@@ -4805,6 +4817,9 @@ do_pbid() {
if [ "${PBI_VERBOSE}" != "YES" ] ; then _redir="/dev/null" ; fi
echo "Started pbid: `date`" > ${_pbid_log}
+ # Check for opengl libs to link
+ check_populate_opengl
+
while
i=1
do
Please sign in to comment.
Something went wrong with that request. Please try again.