2023-05-04 16:32:39 +09:00
|
|
|
projectDir=$workDir/mfx
|
|
|
|
|
|
|
|
# git clone https://github.com/lu-zero/mfx_dispatch $projectDir --depth 1
|
|
|
|
|
|
|
|
rm -rf $projectDir
|
|
|
|
|
|
|
|
mkdir $projectDir
|
|
|
|
cd $projectDir
|
|
|
|
|
|
|
|
git init
|
|
|
|
git remote add origin https://github.com/lu-zero/mfx_dispatch
|
2023-05-23 14:49:58 +09:00
|
|
|
git fetch --depth 1 origin "5a3f178be7f406cec920b9f52f46c1ae29f29bb2"
|
2023-05-04 16:32:39 +09:00
|
|
|
git checkout FETCH_HEAD
|
|
|
|
|
2023-05-22 19:50:18 +09:00
|
|
|
git am ../../patches/mfx/*
|
2023-05-04 16:32:39 +09:00
|
|
|
|
2023-05-22 19:50:18 +09:00
|
|
|
export CFLAGS="$CFLAGS -static-libgcc -static-libstdc++ -static"
|
|
|
|
export CXXFLAGS="$CXXFLAGS -static-libgcc -static-libstdc++ -static"
|
|
|
|
export LDFLAGS="$LDFLAGS -static-libgcc -static-libstdc++"
|
|
|
|
|
2023-05-23 14:49:58 +09:00
|
|
|
autoreconf -i
|
2023-05-04 16:32:39 +09:00
|
|
|
|
2023-05-23 14:49:58 +09:00
|
|
|
./configure --prefix=$PREFIX --disable-shared --enable-static --with-pic --host=$MFX_HOST
|
2023-05-04 16:32:39 +09:00
|
|
|
|
2023-05-23 14:49:58 +09:00
|
|
|
make -j$JOBS
|
|
|
|
make install
|