diff options
author | Josselin Poiret <dev@jpoiret.xyz> | 2023-04-22 13:34:56 +0200 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2023-04-22 13:50:20 +0200 |
commit | 228c9308ffca333e7da842787fb3d7e2b8f51875 (patch) | |
tree | ae86ff2167344ae334e7b78498469113af4dff88 /gnu/packages/patches | |
parent | 5569971659ff988c27ea868756e7da935f42dea5 (diff) |
gnu: zig: Fix build.
* gnu/packages/patches/zig-do-not-link-against-librt.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/zig.scm (zig-0.10): Use it. Also force LLVM to be dynamically
linked, and set up the CC env variable.
(zig-0.9): Also use the above patch.
Signed-off-by: Andreas Enge <andreas@enge.fr>
Diffstat (limited to 'gnu/packages/patches')
-rw-r--r-- | gnu/packages/patches/zig-do-not-link-against-librt.patch | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gnu/packages/patches/zig-do-not-link-against-librt.patch b/gnu/packages/patches/zig-do-not-link-against-librt.patch new file mode 100644 index 0000000000..3239efbdd4 --- /dev/null +++ b/gnu/packages/patches/zig-do-not-link-against-librt.patch @@ -0,0 +1,10 @@ +--- a/src/target.zig 2023-04-22 11:44:47.917416658 +0200 ++++ b/src/target.zig 2023-04-22 11:45:04.577465352 +0200 +@@ -478,7 +478,6 @@ + "-lpthread", + "-lc", + "-ldl", +- "-lrt", + "-lutil", + }, + }, |