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

Fix compilation on macOS #192

Merged
merged 2 commits into from
Aug 9, 2024
Merged

Conversation

pyrmont
Copy link
Contributor

@pyrmont pyrmont commented Aug 8, 2024

As discussed in #191, cc.janet does not work correctly when compiling on macOS. This PR addresses these problems by:

  1. using -Wl,rpath, rather than -Wl,rpath=
  2. not using -Wl,-Bstatic and -Wl,-Bdynamic on macOS
  3. disabling -Wl,--start-group and -Wl,--end-group by default on macOS
  4. enabling dynamic lookup for undefined symbols on macOS

I'm using a vendored version of this file successfully to compile Janet libraries on macOS as part of Arnie. This fixes #191.

@bakpakin
Copy link
Member

bakpakin commented Aug 9, 2024

Thanks @pyrmont, LGTM!

@bakpakin bakpakin merged commit e13e82a into janet-lang:master Aug 9, 2024
1 check passed
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.

Issues with cc.janet on macOS
2 participants