Fix Illegal Instruction in Docker image by not using -march=native (#2)

`RosBE-Builder.sh` defaults to using `-march=native`. Images built on the latest CPUs (as the GitHub Actions CI machines have) will then fail on older build machines.

These flags are already used for the Debian package: aff79fe611/RosBE-Unix/Base-i386_debian/rules
This commit is contained in:
Colin Finck 2024-08-30 23:46:05 +02:00 committed by GitHub
parent d7f680803b
commit 27108f1a28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,7 @@ RUN wget https://downloads.sourceforge.net/reactos/RosBE-Unix-2.2.1.tar.bz2 \
&& tar -xjf RosBE-Unix-2.2.1.tar.bz2 \
&& rm RosBE-Unix-2.2.1.tar.bz2 \
&& cd RosBE-Unix-2.2.1 \
&& echo yes | bash RosBE-Builder.sh /usr/local/RosBE \
&& echo yes | CFLAGS="-pipe -O2 -Wl,-S -g0 -march=core2" bash RosBE-Builder.sh /usr/local/RosBE \
&& cd .. \
&& rm -rf RosBE-Unix-2.2.1