From b0f651bf81f06f351dc79d33174803ce091667a5 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Sat, 5 Mar 2022 19:13:47 +0200 Subject: [PATCH] sync: enable tcc compilation of sync programs on Amazon Linux 2 (and other Red Hat distros like CentOS) by default (#13664) --- vlib/sync/stdatomic/1.declarations.c.v | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/vlib/sync/stdatomic/1.declarations.c.v b/vlib/sync/stdatomic/1.declarations.c.v index 4dd8423869..f0515266e2 100644 --- a/vlib/sync/stdatomic/1.declarations.c.v +++ b/vlib/sync/stdatomic/1.declarations.c.v @@ -21,6 +21,13 @@ $if linux { #flag -L/usr/lib/gcc/x86_64-linux-gnu/10 #flag -L/usr/lib/gcc/x86_64-linux-gnu/11 #flag -L/usr/lib/gcc/x86_64-linux-gnu/12 + #flag -L/usr/lib/gcc/x86_64-redhat-linux/6 + #flag -L/usr/lib/gcc/x86_64-redhat-linux/7 + #flag -L/usr/lib/gcc/x86_64-redhat-linux/8 + #flag -L/usr/lib/gcc/x86_64-redhat-linux/9 + #flag -L/usr/lib/gcc/x86_64-redhat-linux/10 + #flag -L/usr/lib/gcc/x86_64-redhat-linux/11 + #flag -L/usr/lib/gcc/x86_64-redhat-linux/12 } $else $if arm64 { #flag -L/usr/lib/gcc/aarch64-linux-gnu/6 #flag -L/usr/lib/gcc/aarch64-linux-gnu/7 @@ -29,6 +36,13 @@ $if linux { #flag -L/usr/lib/gcc/aarch64-linux-gnu/10 #flag -L/usr/lib/gcc/aarch64-linux-gnu/11 #flag -L/usr/lib/gcc/aarch64-linux-gnu/12 + #flag -L/usr/lib/gcc/aarch64-redhat-linux/6 + #flag -L/usr/lib/gcc/aarch64-redhat-linux/7 + #flag -L/usr/lib/gcc/aarch64-redhat-linux/8 + #flag -L/usr/lib/gcc/aarch64-redhat-linux/9 + #flag -L/usr/lib/gcc/aarch64-redhat-linux/10 + #flag -L/usr/lib/gcc/aarch64-redhat-linux/11 + #flag -L/usr/lib/gcc/aarch64-redhat-linux/12 } #flag -latomic }