Posix threading in gcc

This commit is contained in:
Jeremy Soller 2018-12-14 17:10:08 -07:00
parent 71620e8b24
commit 998cd2a7fe
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -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
}