Skip to content

Commit

Permalink
Added /usr/local/lib64 to library directories on 64-bit
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Oct 24, 2024
1 parent 822ec3d commit a457734
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/wheels-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ function build_brotli {
(cd $out_dir \
&& $cmake -DCMAKE_INSTALL_PREFIX=$BUILD_PREFIX -DCMAKE_INSTALL_NAME_DIR=$BUILD_PREFIX/lib . \
&& make install)
if [[ "$MB_ML_LIBC" == "manylinux" ]]; then
cp /usr/local/lib64/libbrotli* /usr/local/lib
cp /usr/local/lib64/pkgconfig/libbrotli* /usr/local/lib/pkgconfig
fi
}

function build_harfbuzz {
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,8 @@ def build_extensions(self) -> None:
# standard locations
if not self.disable_platform_guessing:
_add_directory(library_dirs, "/usr/local/lib")
if struct.calcsize("l") == 8:
_add_directory(library_dirs, "/usr/local/lib64")
_add_directory(include_dirs, "/usr/local/include")

_add_directory(library_dirs, "/usr/lib")
Expand Down

0 comments on commit a457734

Please sign in to comment.