Skip to content

Commit

Permalink
cross compile flags
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 committed Jan 29, 2024
1 parent 8daad71 commit d3f7f94
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scripts/build_linux_zig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,7 @@ wget -q https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.4.tar.gz
tar -xf ncurses*.tar.gz
rm *.tar.gz
cd ncurses*
if [[ "${ARCH}" == "x86_64" ]]; then
./configure --with-normal --enable-overwrite --disable-stripping --prefix=${DEPSDIR}
else
./configure --host=${ARCH}-linux --with-normal --enable-overwrite --disable-stripping --prefix=${DEPSDIR}
fi
./configure --host=${ARCH}-linux --with-normal --enable-overwrite --disable-stripping --prefix=${DEPSDIR}
make -j4
make install

Expand Down Expand Up @@ -381,7 +377,7 @@ wget -q https://www.x.org/releases/individual/proto/scrnsaverproto-1.2.2.tar.gz
wget -q https://www.x.org/releases/individual/xcb/libxcb-1.16.tar.gz
wget -q https://www.x.org/releases/individual/xcb/libpthread-stubs-0.5.tar.gz
git clone git://anongit.freedesktop.org/git/xorg/util/modular util/modular
./util/modular/build.sh --modfile ${WORKDIR}/scripts/x11_modfile.txt ${DEPSDIR}
./util/modular/build.sh --host ${ARCH}-linux --modfile ${WORKDIR}/scripts/x11_modfile.txt ${DEPSDIR}
rm *.tar.gz

echo "::endgroup::"
Expand Down

0 comments on commit d3f7f94

Please sign in to comment.