Skip to content

elfutils ported to the zig build system

License

GPL-3.0 and 2 other licenses found

Licenses found

GPL-3.0
COPYING
GPL-2.0
COPYING-GPLV2
LGPL-3.0
COPYING-LGPLV3
Notifications You must be signed in to change notification settings

allyourcodebase/elfutils

CI

elfutils

This is elfutils, packaged for Zig.

Installation

First, update your build.zig.zon:

# Initialize a `zig build` project if you haven't already
zig init
zig fetch --save git+https://github.com/allyourcodebase/elfutils.git

You can then import elfutils in your build.zig with:

const elfutils_dependency = b.dependency("elfutils", .{
    .target = target,
    .optimize = optimize,
});
const libelf = elfutils_dependency.artifact("elf");
const libdw = elfutils_dependency.artifact("dw");
const libasm = elfutils_dependency.artifact("asm");

your_exe.linkLibrary(libelf);
your_exe.linkLibrary(libdw);
your_exe.linkLibrary(libasm);

About

elfutils ported to the zig build system

Topics

Resources

License

GPL-3.0 and 2 other licenses found

Licenses found

GPL-3.0
COPYING
GPL-2.0
COPYING-GPLV2
LGPL-3.0
COPYING-LGPLV3

Stars

Watchers

Forks