mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-20 21:20:28 +00:00
[PR #1907] [MERGED] build(linux): Add -system-libs flag for package manager compatibility #2695
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1907
Author: @x15sr71
Created: 12/26/2025
Status: ✅ Merged
Merged: 12/26/2025
Merged by: @cfsmp3
Base:
master← Head:build/linux-system-libs-flag📝 Commits (3)
f08fd65build(linux): Add -system-libs flag for Homebrew compatibilityc8750e4build(linux): use pkg-config cflags for system-libs includes170d769Merge branch 'master' into build/linux-system-libs-flag📊 Changes
2 files changed (+67 additions, -1 deletions)
View changed files
📝
docs/CHANGES.TXT(+2 -0)📝
linux/build(+65 -1)📄 Description
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
build(linux): Add -system-libs flag for package manager compatibility
Summary
-system-libsflag tolinux/buildfor package manager compatibilityProblem
Linux package managers, including
Linuxbrew/Homebrew, require builds to use system libraries via pkg-config, but the current Linux build script only supports bundled dependencies.Currently, the Linux build script only supports bundled dependencies (zlib, libpng, freetype, utf8proc), making it difficult to create distribution-compliant packages.
Solution
Add a
-system-libsflag that changes the build configuration:src/thirdparty/Implementation Details
Dependency validation:
pkg-configavailabilitylibpng,zlib,freetype2,libutf8procleptonica/allheaders.h,tesseract/capi.hBuild configuration:
-DFT2_BUILD_LIBRARYflag (prevents building FreeType from source)lib_ccxandlib_hash(excludes bundled thirdparty sources)pkg-config --libsCompatibility:
utf8procheader locations with temporary symlink-debug,-hardsubx)Test Plan
./build -system-libs— build completed successfullyldd:libfreetype.so.6libpng16.so.16libutf8proc.so.3libz.so.1./ccextractor --versionruns correctly and reports expected build infoUsage
Default build (bundled libraries):
System libraries build:
Related
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.