Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load alternately name shared libary? #26

Open
gregcman opened this issue Jan 11, 2019 · 1 comment
Open

load alternately name shared libary? #26

gregcman opened this issue Jan 11, 2019 · 1 comment

Comments

@gregcman
Copy link

gregcman commented Jan 11, 2019

(define-foreign-library (glfw)
     (:darwin (:or
               ; homebrew naming
               "libglfw3.1.dylib" "libglfw3.dylib"
               ; cmake build naming
               "libglfw.3.1.dylib" "libglfw.3.dylib"))
     (:unix (:or "libglfw.so.3.1" "libglfw.so.3"))
     (:windows "glfw3.dll")
     (t (:or (:default "libglfw3") (:default "libglfw"))))

(use-foreign-library glfw)

If the glfw library has a different name, then it won't load.
I'm trying to load glfw-blob by borodust, which is named like libglfw.[dll,dylib,so].bodged
Would you accept a pull request that customizes this behavior?

@AlexCharlton
Copy link
Owner

Sounds totally reasonable. PR away!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants