Skip to content

Commit

Permalink
Repair linux build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxwell175 committed Jun 19, 2024
1 parent 00cfc62 commit b82df0c
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ make install
cd ..
fi

if [ ! -d libffi-3.4.4 ]; then
curl -L https://github.com/libffi/libffi/releases/download/v3.4.4/libffi-3.4.4.tar.gz -o libffi.tar.gz
if [ ! -d libffi-3.4.6 ]; then
curl -L https://github.com/libffi/libffi/releases/download/v3.4.6/libffi-3.4.6.tar.gz -o libffi.tar.gz
tar -xf libffi.tar.gz
cd libffi-3.4.4
cd libffi-3.4.6
./configure --prefix=${PREFIX} --disable-shared
make -j$(nproc --all)
make install
Expand Down Expand Up @@ -146,16 +146,6 @@ make install
cd ..
fi

if [ ! -d libffi-3.4.4 ]; then
curl -L https://github.com/libffi/libffi/releases/download/v3.4.4/libffi-3.4.4.tar.gz -o libffi.tar.gz
tar -xf libffi.tar.gz
cd libffi-3.4.4
./configure --prefix=${PREFIX} --disable-shared
make -j$(nproc --all)
make install
cd ..
fi

if [ ! -d libpng-1.6.39 ]; then
curl -L http://downloads.sourceforge.net/project/libpng/libpng16/1.6.39/libpng-1.6.39.tar.xz -o libpng.tar.gz
tar -xf libpng.tar.gz
Expand Down Expand Up @@ -231,8 +221,8 @@ curl -L https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.15.
tar -xf fontconfig.tar.gz
cd fontconfig-2.15.0
./configure --prefix=${PREFIX} --disable-shared
make -j$(nproc --all)
make install
make -j$(nproc --all) install || true
echo ----- It is normal for fontconfig to fail to build the executables. The libs should be enough. -----
cd ..
fi

Expand Down

0 comments on commit b82df0c

Please sign in to comment.