summaryrefslogtreecommitdiff
path: root/dev-lang/zig/files
diff options
context:
space:
mode:
authorBratishkaErik <bratishkaerik@getgoogleoff.me>2022-04-19 19:44:23 +0600
committerJoonas Niilola <juippis@gentoo.org>2022-04-30 11:13:20 +0300
commit2647a868c09f98a97fad19e0070a4abab851376c (patch)
tree4a5a38160205446451f2c48a8c247616bf22532a /dev-lang/zig/files
parent0ace574c3772b362224c6b7bcefc13466f7c9282 (diff)
downloadgentoo-2647a868c09f98a97fad19e0070a4abab851376c.tar.gz
gentoo-2647a868c09f98a97fad19e0070a4abab851376c.tar.bz2
gentoo-2647a868c09f98a97fad19e0070a4abab851376c.zip
dev-lang/zig: add stage2 support (on -9999)
Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: BratishkaErik <bratishkaerik@getgoogleoff.me> Closes: https://github.com/gentoo/gentoo/pull/25085 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-lang/zig/files')
-rw-r--r--dev-lang/zig/files/zig-9999-stage2-fix.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/dev-lang/zig/files/zig-9999-stage2-fix.patch b/dev-lang/zig/files/zig-9999-stage2-fix.patch
new file mode 100644
index 000000000000..520be382c562
--- /dev/null
+++ b/dev-lang/zig/files/zig-9999-stage2-fix.patch
@@ -0,0 +1,12 @@
+diff --git a/build.zig b/build.zig
+index 4d3cf49..4601935 100644
+--- a/build.zig
++++ b/build.zig
+@@ -550,6 +550,7 @@ fn addCmakeCfgOptionsToExe(
+ else => |e| return e,
+ };
+ exe.linkSystemLibrary("unwind");
++ exe.linkSystemLibrary("c_nonshared");
+ } else if (exe.target.isFreeBSD()) {
+ try addCxxKnownPath(b, cfg, exe, "libc++.a", null, need_cpp_includes);
+ exe.linkSystemLibrary("pthread");