Skip to content

Commit

Permalink
use cross compiler for i386
Browse files Browse the repository at this point in the history
  • Loading branch information
theofficialgman committed Oct 27, 2023
1 parent 9cc2d55 commit 5c2ae19
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pushaction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
xz-utils \
openjdk-11-jdk-headless \
maven \
build-essential \
build-essential libc6-dev-amd64-cross \
ant sudo locales
# set Locale to en_US.UTF-8 (avoids hang during compilation)
locale-gen en_US.UTF-8
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
- name: Install Windows compilers
run: sudo apt-get -yq install g++-mingw-w64-i686 g++-mingw-w64-x86-64
- name: Install Linux x86 compilers/libraries
run: sudo apt-get -yq install gcc-multilib g++-multilib linux-libc-dev:i386
run: sudo apt-get -yq install gcc-multilib-i686-linux-gnu g++-multilib-i686-linux-gnu gcc-multilib-x86-64-linux-gnux32 g++-multilib-x86-64-linux-gnux32 binutils-i686-gnu libc6-dev-i386-cross libc6-dev-x32-cross libc6-dev-i386-amd64-cross libc6-dev-i386-x32-cross libstdc++-7-dev-amd64-cross lib32stdc++-7-dev
- name: Install Linux arm32 compilers/libraries
run: sudo apt-get -yq install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf binutils-arm-linux-gnueabihf
- name: Install Linux arm64 compilers/libraries
Expand All @@ -135,7 +135,7 @@ jobs:
working-directory: SDL/build-linux64

- run: mkdir -p SDL/build-linux32
- run: ../configure CFLAGS="-fPIC -m32" CPPFLAGS="-fPIC -m32" LDFLAGS="-m32" --disable-audio --disable-video --disable-video-vulkan --disable-render --disable-filesystem --disable-threads --disable-directx --disable-mmx --disable-3dnow --disable-sse --disable-sse2 --disable-sse3 --disable-cpuinfo --disable-sensor --enable-hidapi
- run: ../configure --host=i686-linux-gnu CFLAGS="-fPIC" CPPFLAGS="-fPIC" --disable-audio --disable-video --disable-video-vulkan --disable-render --disable-filesystem --disable-threads --disable-directx --disable-mmx --disable-3dnow --disable-sse --disable-sse2 --disable-sse3 --disable-cpuinfo --disable-sensor --enable-hidapi
working-directory: SDL/build-linux32
- run: make -j
working-directory: SDL/build-linux32
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/releaseaction.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
xz-utils \
openjdk-11-jdk-headless \
maven \
build-essential \
build-essential libc6-dev-amd64-cross \
ant sudo locales
# set Locale to en_US.UTF-8 (avoids hang during compilation)
locale-gen en_US.UTF-8
Expand Down Expand Up @@ -115,7 +115,7 @@ jobs:
- name: Install Windows compilers
run: sudo apt-get -yq install g++-mingw-w64-i686 g++-mingw-w64-x86-64
- name: Install Linux x86 compilers/libraries
run: sudo apt-get -yq install gcc-multilib g++-multilib linux-libc-dev:i386
run: sudo apt-get -yq install gcc-multilib-i686-linux-gnu g++-multilib-i686-linux-gnu gcc-multilib-x86-64-linux-gnux32 g++-multilib-x86-64-linux-gnux32 binutils-i686-gnu libc6-dev-i386-cross libc6-dev-x32-cross libc6-dev-i386-amd64-cross libc6-dev-i386-x32-cross libstdc++-7-dev-amd64-cross lib32stdc++-7-dev
- name: Install Linux arm32 compilers/libraries
run: sudo apt-get -yq install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf binutils-arm-linux-gnueabihf
- name: Install Linux arm64 compilers/libraries
Expand All @@ -137,7 +137,7 @@ jobs:
working-directory: SDL/build-linux64

- run: mkdir -p SDL/build-linux32
- run: ../configure CFLAGS="-fPIC -m32" CPPFLAGS="-fPIC -m32" LDFLAGS="-m32" --disable-audio --disable-video --disable-video-vulkan --disable-render --disable-filesystem --disable-threads --disable-directx --disable-mmx --disable-3dnow --disable-sse --disable-sse2 --disable-sse3 --disable-cpuinfo --disable-sensor --enable-hidapi
- run: ../configure --host=i686-linux-gnu CFLAGS="-fPIC" CPPFLAGS="-fPIC" --disable-audio --disable-video --disable-video-vulkan --disable-render --disable-filesystem --disable-threads --disable-directx --disable-mmx --disable-3dnow --disable-sse --disable-sse2 --disable-sse3 --disable-cpuinfo --disable-sensor --enable-hidapi
working-directory: SDL/build-linux32
- run: make -j
working-directory: SDL/build-linux32
Expand Down

0 comments on commit 5c2ae19

Please sign in to comment.