Skip to content

Commit

Permalink
Hack to remove lpthread dep
Browse files Browse the repository at this point in the history
  • Loading branch information
jordancoult committed Oct 22, 2024
1 parent fba1fad commit 4b31f83
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions steps/05-configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4b31f83

Please sign in to comment.