From 998cd2a7fe37ab16ea187fc1063387e5fce3958e Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jeremy@system76.com>
Date: Fri, 14 Dec 2018 17:10:08 -0700
Subject: [PATCH] Posix threading in gcc

---
 recipes/gcc/recipe.sh | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/recipes/gcc/recipe.sh b/recipes/gcc/recipe.sh
index cc406eea6..c091a3d61 100644
--- a/recipes/gcc/recipe.sh
+++ b/recipes/gcc/recipe.sh
@@ -25,7 +25,18 @@ function recipe_build {
     mkdir -p "$sysroot/usr"
     ln -sf "$sysroot/include" "$sysroot/usr/include"
     ln -sf "$sysroot/lib" "$sysroot/usr/lib"
-    ./configure --host=${HOST} --target=${HOST} --prefix=/ --with-sysroot=/ --with-build-sysroot="$sysroot" --enable-static --disable-shared --disable-dlopen --disable-nls --enable-languages=c,c++
+    ./configure \
+        --host=${HOST} \
+        --target=${HOST} \
+        --prefix=/ \
+        --with-sysroot=/ \
+        --with-build-sysroot="$sysroot" \
+        --enable-static \
+        --disable-shared \
+        --disable-dlopen \
+        --disable-nls \
+        --enable-languages=c,c++ \
+        --enable-threads=posix
     make -j "$(nproc)" all-gcc all-target-libgcc all-target-libstdc++-v3
     skip=1
 }
-- 
GitLab