Skip to content

Fix macOS dependency search path#113

Merged
stechyo merged 1 commit intostechyo:masterfrom
Grublady:master
Dec 7, 2025
Merged

Fix macOS dependency search path#113
stechyo merged 1 commit intostechyo:masterfrom
Grublady:master

Conversation

@Grublady
Copy link
Contributor

@Grublady Grublady commented Nov 6, 2025

Fixes #53.

Currently on macOS, the built .dylib does not search its containing directory for dependencies—thus, it cannot find libphonon.dylib and fails to load.

This PR adds a linker flag to set the search path to @loader_path, which represents the library's location, allowing the dependency to be found.

The Makefile and .gdextension have also been updated to include files for macOS.

@tomaaron
Copy link

I can confirm with mac that it works as intended.

@stechyo
Copy link
Owner

stechyo commented Dec 7, 2025

Thanks!

@stechyo stechyo merged commit 4fe4811 into stechyo:master Dec 7, 2025
@stechyo
Copy link
Owner

stechyo commented Dec 7, 2025

Just FYI, had to make #116 to build a macOS release automatically since the changes in this PR to the Makefile break the build. Let me know, whenever you can test it, if it works. Thanks!

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.

macos editor support

3 participants