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

static compilation w/musl #634

Merged
merged 5 commits into from
Dec 16, 2020
Merged

static compilation w/musl #634

merged 5 commits into from
Dec 16, 2020

Conversation

0pcom
Copy link
Collaborator

@0pcom 0pcom commented Dec 8, 2020

Static compilation with musl per haltingstate's reuest

I couldn't figure out how to escape the quotation marks in the makefile so i just eliminated that env and put it inline in the go build command.

Also, for deterministic builds you really want to be in the directory where you're building the .go file into a binary so that the path isn't written into the binary.

Did you run make format && make check?
no changes to go source were made

Fixes #
#614

Changes:

  • static compilation w/musl
  • remove -ldflags which interfere with deterministic builds
  • update documentation about musl
  • update documentation about hypervisor & visor configuration
  • remove dPKGBUILD.sh and associated makefile entries as I am not maintaining this method for building packages.

How to test this PR:
make build

Additional context:
My current debian build uses dependencies only available on archlinux but it works much better than that script. As I am actively developing .deb packages in https://github.com/the-skycoin-project/deb I have no intention of maintaining the more rudimentary method which avoids the arch deps.

…rministic builds ; update documentation about musl ; update documentation about hypervisor & visor configuration ; remove dPKGBUILD.sh and associated makefile entries as I am not maintaining this method for building packages.
Copy link
Member

@jdknives jdknives left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means we cannot build on Mac anymore. I tried setting up musl on Mac and it is not as straightforward as I hoped. Also it does not come with most distributions by default so users could not build straight away on those systems if they wanted. Will check with @SkycoinSynth about whether he still wants us to go ahead with this nonetheless.

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