Skip to content
This repository was archived by the owner on Aug 19, 2023. It is now read-only.
This repository was archived by the owner on Aug 19, 2023. It is now read-only.

Static compiling #2

@adubovikov

Description

@adubovikov

Hello here,

can you help me, if there is anyway to compile all static ? I just made a test application but even with musl it compiles dynamic:

ldd target/x86_64-unknown-linux-musl/debug/hello_world
linux-vdso.so.1 (0x00007ffc2b15d000)
libpcap.so.0.8 => /usr/lib/x86_64-linux-gnu/libpcap.so.0.8 (0x00007f3596cb9000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f359691a000)
/lib/ld64.so.1 => /lib64/ld-linux-x86-64.so.2 (0x00007f3596efb000)

How to tell the rustcap or what should I set in the Cargo.toml to compile it static ?

[package]
name = "hello_world"
version = "0.0.1"
authors = [ "Your name <you@example.com>" ]

[build]
target = "x86_64-unknown-linux-musl"

[dependencies.rustcap]
version = "0.1.2"
feature = "static-libpcap"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions