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

Make shared lib builds work on Darwin #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

deriamis
Copy link

The makefile was assuming that the shared libarary extension would always be .so, which is not accurate. On Darwin in particular, the default shared library extension is .dylib. This commit adds proper OS detection so the correct shared library extension is used.

The `makefile` was assuming that the shared libarary extension would
always be `.so`, which is not accurate. On Darwin in particular, the
default shared library extension is `.dylib`. This commit adds proper
OS detection so the correct shared library extension is used.
@dzaima
Copy link
Owner

dzaima commented Nov 11, 2024

The Windows part there is broken, as it's named cbqn.dll there; and the folder structure is gonna not apply anyway (never mind that the only supported way to make Windows builds is cross-compilation), so Windows handling can just be omitted.

Also, the develop branch should be the base/target.

(as a minor point, it also adds ~4ms to every single make run from the uname invocation, a 4% increase on no-change rebuilds; yay makefiles)

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

Successfully merging this pull request may close these issues.

2 participants