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

Need static Linux binary #116

Open
a-p-jo opened this issue Mar 12, 2023 · 7 comments
Open

Need static Linux binary #116

a-p-jo opened this issue Mar 12, 2023 · 7 comments

Comments

@a-p-jo
Copy link

a-p-jo commented Mar 12, 2023

The released linux binaries seem to be dynamically linked to glibc.
It would be better if they were static binaries, maybe linked to musl,
as dynamically linked binaries make little sense on Linux.

As a note to anyone on Alpine Linux, you need to:

  1. Enable community repos
  2. apk add gcompat
@Spudz76
Copy link

Spudz76 commented Apr 10, 2023

glibc won't static, if you build your own it will be all static except for glibc.

I don't think alternative libc's work, for some non-trivial reason.

@realsetvin
Copy link

the instructions were easy enough for me to follow, I have confidence in you

https://xmrig.com/docs/miner/build

please close this issue

@a-p-jo
Copy link
Author

a-p-jo commented May 29, 2024

@realsetvin I am not asking how to build. Your link is irrelevant to the issue. The issue requests that the project should not be (and should not need) linking to glibc because dynamic linking is undesirable on Linux for compatibility reasons.

@realsetvin
Copy link

@realsetvin I am not asking how to build. Your link is irrelevant to the issue. The issue requests that the project should not be (and should not need) linking to glibc because dynamic linking is undesirable on Linux for compatibility reasons.

apologize for my lack of understanding, do you think you could form a pull request to solve the issue? any suggestions?

@GhostDog98
Copy link

There's instructions to statically compile here:

  1. sudo apt install git build-essential cmake automake libtool autoconf
  2. git clone https://github.com/xmrig/xmrig.git
  3. mkdir xmrig/build && cd xmrig/scripts
  4. ./build_deps.sh && cd ../build
  5. cmake .. -DXMRIG_DEPS=scripts/deps
  6. make -j$(nproc)

I've attached a static build for linux here. Use at own risk etc. etc.
xmrig.zip

@Spudz76
Copy link

Spudz76 commented Jun 14, 2024

@realsetvin I am not asking how to build. Your link is irrelevant to the issue. The issue requests that the project should not be (and should not need) linking to glibc because dynamic linking is undesirable on Linux for compatibility reasons.

Must be why every package on the Debian repo is dynamic linked 🤡

@Spudz76
Copy link

Spudz76 commented Jun 14, 2024

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

4 participants