Skip to content

Commit

Permalink
Merge pull request #11 from extism/install-docs-fix
Browse files Browse the repository at this point in the history
fix: include libc and shared lib install steps
  • Loading branch information
nilslice authored Dec 29, 2023
2 parents eb6fade + 4f3bcc3 commit 2ded50f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ And in your `build.zig`:
```zig
const extism_module = b.dependency("extism", .{ .target = target, .optimize = optimize }).module("extism");
exe.addModule("extism", extism_module);
// TODO: make this easier to install
// add the shared library & header
exe.linkLibC();
exe.addIncludePath(.{ .path = "/usr/local/include" });
exe.addLibraryPath(.{ .path = "/usr/local/lib" });
exe.linkSystemLibrary("extism");
```

## Getting Started
Expand Down

0 comments on commit 2ded50f

Please sign in to comment.