Skip to content

Commit 9fe0148

Browse files
committed
Shared libraries may be located within usr/lib64
1 parent 731bcda commit 9fe0148

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

depends/install_imagequant.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ else
2323
cargo cinstall --prefix=/usr --destdir=.
2424

2525
# Copy into place
26-
sudo cp usr/lib/libimagequant.so* /usr/lib/
26+
if [ -d "usr/lib64" ]; then
27+
lib="lib64"
28+
else
29+
lib="lib"
30+
fi
31+
sudo cp usr/$lib/libimagequant.so* /usr/lib/
2732
sudo cp usr/include/libimagequant.h /usr/include/
2833

2934
if [ -n "$GITHUB_ACTIONS" ]; then

0 commit comments

Comments
 (0)