Build qpdf's libjpeg-turbo with position-independent code (#9584)

qpdf's build has been failing with errors within its own build of
libjpeg-turbo because of lack of position-independent code. This change
forces libjpeg-turbo to build with PIC even though we continue to build
only static libraries. I have reproduced the build failure locally using
the fuzz docker images and have reproduced locally that this fixes it.
This commit is contained in:
Jay Berkenbilt 2023-02-06 05:13:20 -05:00 committed by GitHub
parent a7f14d68b6
commit ab9e948cf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ popd
# libjpeg-turbo # libjpeg-turbo
pushd $SRC/libjpeg-turbo pushd $SRC/libjpeg-turbo
cmake . -DCMAKE_INSTALL_PREFIX="$WORK" -DENABLE_STATIC:bool=on cmake . -DCMAKE_INSTALL_PREFIX="$WORK" -DENABLE_STATIC=1 -DENABLE_SHARED=0 -DCMAKE_POSITION_INDEPENDENT_CODE=1
make -j$(nproc) make -j$(nproc)
make install make install
popd popd