Skip to content

Commit

Permalink
Make pkg-config file of MozJPEG relocatable (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
kleisauke committed Oct 9, 2024
1 parent 296df6d commit 4dc513a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ node --version
mkdir $DEPS/jpeg
curl -Ls https://github.com/mozilla/mozjpeg/archive/refs/tags/v$VERSION_MOZJPEG.tar.gz | tar xzC $DEPS/jpeg --strip-components=1
cd $DEPS/jpeg
# TODO(kleisauke): Discuss this patch upstream
curl -Ls https://github.com/kleisauke/libjpeg-turbo/commit/a60fb467fc7601b008741d42e98268c8a7bcb5b4.patch | patch -p1
# Compile without SIMD support, see: https://github.com/libjpeg-turbo/libjpeg-turbo/issues/250
# Disable environment variables usage, see: https://github.com/libjpeg-turbo/libjpeg-turbo/issues/600
emcmake cmake -B_build -H. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$TARGET -DENABLE_STATIC=TRUE \
Expand Down

0 comments on commit 4dc513a

Please sign in to comment.