Skip to content

static build doesn't work #112

Open
Open
@ygrek

Description

/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/12/../../../x86_64-linux-gnu/libmagic.a(compress.o): in function `uncompressxzlib':
(.text+0x3fb): undefined reference to `lzma_auto_decoder'
/usr/bin/ld: (.text+0x46d): undefined reference to `lzma_code'
/usr/bin/ld: (.text+0x483): undefined reference to `lzma_end'
/usr/bin/ld: (.text+0x49e): undefined reference to `lzma_end'

that's because

$ pkg-config --static --libs libmagic
-lmagic -llzma -lbz2 -lz 

but we are linking against -lmagic only (and -lbz2 -lz for other reasons), but not -llzma

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