From 321d8b5f04aab689af26170afea4051a39e26b46 Mon Sep 17 00:00:00 2001 From: Stephen Hurd <deuce@synchro.net> Date: Sat, 26 Feb 2022 01:48:41 -0500 Subject: [PATCH] Add new patch to remove -march on GCC --- patches/cl-remove-march.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 patches/cl-remove-march.patch diff --git a/patches/cl-remove-march.patch b/patches/cl-remove-march.patch new file mode 100644 index 0000000..f22fbac --- /dev/null +++ b/patches/cl-remove-march.patch @@ -0,0 +1,11 @@ +--- tools/ccopts.sh.sbbs 2022-02-25 13:17:06.665485787 +1100 ++++ tools/ccopts.sh 2022-02-25 13:03:43.969689324 +1100 +@@ -591,7 +591,7 @@ + + if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ] || [ "$ARCH" = "x86_64" ] ; then + if [ "$GCC_VER" -ge 45 ] ; then +- CCARGS="$CCARGS -march=native -mtune=generic" ; ++ CCARGS="$CCARGS -mtune=generic" ; + if [ "$ARCH" = "x86_64" ] ; then + CCARGS="$CCARGS -fPIC" ; + fi ; -- GitLab