Coder Social home page Coder Social logo

Add build documentation about sevctl HOT 2 CLOSED

surajssd avatar surajssd commented on September 25, 2024
Add build documentation

from sevctl.

Comments (2)

tylerfanelli avatar tylerfanelli commented on September 25, 2024 1

@surajssd Apologies for delay, addressed in #157

from sevctl.

surajssd avatar surajssd commented on September 25, 2024

Normally built binary has dependency on the following system libs:

$ ldd target/release/sevctl
        linux-vdso.so.1 (0x00007ffed59d1000)
        libssl.so.3 => /lib/x86_64-linux-gnu/libssl.so.3 (0x00007f5d6d8c1000)
        libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007f5d6d47e000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f5d6d45e000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f5d6d236000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f5d6dbea000)

To be able to do static build I had to also install the musl-tools on top of the existing packages:

sudo apt install -y pkg-config libssl-dev asciidoctor musl-tools
rustup target add x86_64-unknown-linux-musl
cargo build --release --target x86_64-unknown-linux-musl

And using the changes in PR #112, I can now do static build:

$ ldd target/x86_64-unknown-linux-musl/release/sevctl
        statically linked

from sevctl.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.