Skip to content

Commit

Permalink
Enable position independent code for Linux builds
Browse files Browse the repository at this point in the history
  • Loading branch information
royshil committed Jan 5, 2024
1 parent 565daa4 commit 7972ba0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ cmake leptonica-$LEPTONICA_VERSION -B "leptonica_build_$CONFIG" \
-DENABLE_JPEG=OFF \
-DENABLE_TIFF=OFF \
-DENABLE_WEBP=OFF \
-DENABLE_OPENJPEG=OFF
-DENABLE_OPENJPEG=OFF \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON

# build leptonica
cmake --build "leptonica_build_$CONFIG"
Expand All @@ -34,7 +35,8 @@ cmake tesseract-$TESSERACT_VERSION -B "tesseract_build_${CONFIG}" \
-DBUILD_TESTS=OFF \
-DDISABLED_LEGACY_ENGINE=ON \
-DDISABLE_TIFF=ON \
-DDISABLE_CURL=ON
-DDISABLE_CURL=ON \
-DCMAKE_POSITION_INDEPENDENT_CODE=ON

# build
cmake --build "tesseract_build_${CONFIG}"
Expand Down

0 comments on commit 7972ba0

Please sign in to comment.