diff --git a/steps/05-configure.sh b/steps/05-configure.sh index d255ab7..3877cc9 100755 --- a/steps/05-configure.sh +++ b/steps/05-configure.sh @@ -81,3 +81,10 @@ mkdir -p "$BUILD" pushd "$SOURCE" gn gen "$BUILD" popd + +# (Dirty method - only for Android) Remove -pthread and -lpthread flags from generated Ninja files +find "$BUILD" -name '*.ninja' -exec sed -i 's/-pthread//g' {} + +find "$BUILD" -name '*.ninja' -exec sed -i 's/-lpthread//g' {} + + +# Proceed with the build +ninja -C "$BUILD" pdfium \ No newline at end of file