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

Option for linking executables statically #52

Open
1 of 3 tasks
judah opened this issue Dec 28, 2017 · 1 comment
Open
1 of 3 tasks

Option for linking executables statically #52

judah opened this issue Dec 28, 2017 · 1 comment

Comments

@judah
Copy link
Owner

judah commented Dec 28, 2017

It will make rebuilds take up significantly less space, and possibly take less time too. (We might be able to avoid the "dynamic-too" and "ar" invocations if we're only building shared libraries with "-shared".)

We'll want to add a linkArtifact analogue of copyArtifact, and link all dylibs in one location (similar to the workaround that Cabal/Nix/etc use for macOS Sierra).

  • Make dynamic linking the default
  • Allow static linking as another option
  • Work around the macOS Sierra linking issue
judah added a commit that referenced this issue Jan 14, 2018
TODO:
- add back an option for static linking
- Work around macOS Sierra linker limitations

Partial work towards #52.
judah added a commit that referenced this issue Jan 15, 2018
TODO:
- add back an option for static linking
- Work around macOS Sierra linker limitations

Partial work towards #52.
@judah judah changed the title Link executables dynamically Option for linking executables statically Jan 20, 2018
@simonmichael
Copy link

Upvoting because I think I'm seeing "the macOS Sierra linking issue" (pier build, copy executable to ~/.local/bin, try to run it and get a dyld error, run it from the original location and it works, and now so does the one in ~/.local/bin.)

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