mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-07-08 18:06:30 +00:00
[PR #1922] [FIX]: utf8proc include path for system library builds #2721
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?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1922
State: closed
Merged: Yes
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
Problem
CCExtractor uses a non-standard include path for
utf8procinsrc/lib_ccx/params.c:#include <utf8proc/utf8proc.h>However, utf8proc is installed as
<utf8proc.h>(without a subdirectory) on all major platforms:/usr/include/utf8proc.h/usr/include/utf8proc.h$(brew --prefix)/include/utf8proc.h$out/include/utf8proc.hinstalled/<triplet>/include/utf8proc.hThis caused build failures when using the
-system-libsflag on Homebrew Linux.Solution
This PR uses
__has_include()to support both paths:<utf8proc.h>(standard location)<utf8proc/utf8proc.h>(CCExtractor's vendored copy)Also removes the temporary symlink workaround from
linux/buildas it's no longer needed.Testing
-system-libsand without on Linux