Fix linkage of pthreads in gcc

This commit is contained in:
Jeremy Soller 2018-12-22 10:09:38 -07:00
parent db5d99ee40
commit b86345a1d2
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -26,7 +26,7 @@ function recipe_build {
ln -sf "$sysroot/include" "$sysroot/usr/include"
ln -sf "$sysroot/lib" "$sysroot/usr/lib"
export LIBS='-lpthread'
export LIBS='-Wl,--whole-archive -lpthread -Wl,--no-whole-archive'
./configure \
--host=${HOST} \
--target=${HOST} \