Skip to content

Commit

Permalink
add /opt/homebrew/lib for MacOS13
Browse files Browse the repository at this point in the history
  • Loading branch information
k-okada committed Dec 9, 2024
1 parent 05907c4 commit 9a05cbf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/fix-dylib-location.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,22 @@ diff --git a/irteus/irtgl.l b/irteus/irtgl.l
index 4c417e61..afd606bc 100644
--- a/irteus/irtgl.l
+++ b/irteus/irtgl.l
@@ -51,6 +51,8 @@
@@ -51,6 +51,10 @@
(cond
((probe-file "/opt/local/lib/libGL.dylib")
(setq gl-lib ( load-foreign "/opt/local/lib/libGL.dylib")))
+ ((probe-file "/usr/local/lib/libGL.dylib")
+ (setq gl-lib ( load-foreign "/usr/local/lib/libGL.dylib")))
+ ((probe-file "/opt/homebrew/lib/libGL.dylib")
+ (setq gl-lib ( load-foreign "/opt/homebrew/lib/libGL.dylib")))
(t
(setq gl-lib ( load-foreign "/opt/X11/lib/libGL.dylib")))))
#+:cygwin
diff --git a/irteus/irtx.l b/irteus/irtx.l
index 6a6761d4..4477b6ce 100644
--- a/irteus/irtx.l
+++ b/irteus/irtx.l
@@ -76,9 +76,12 @@
@@ -76,9 +76,14 @@
(let (x-lib pname)
#+:darwin
#+:darwin
Expand All @@ -26,6 +28,8 @@ index 6a6761d4..4477b6ce 100644
+ (setq pname "/opt/local/lib/libX11.dylib"))
+ ((probe-file "/usr/local/lib/libX11.dylib")
+ (setq pname "/usr/local/lib/libX11.dylib"))
+ ((probe-file "/opt/homebrew/lib/libX11.dylib")
+ (setq pname "/opt/homebrew/lib/libX11.dylib"))
+ (t
+ (setq pname "/opt/X11/lib/libX11.dylib")))
#+:cygwin
Expand Down

0 comments on commit 9a05cbf

Please sign in to comment.