From 029adf773116b968645502ca964a5d6c42b9d23f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Tue, 3 Nov 2015 13:15:12 +0200 Subject: [PATCH] Don't optimise OSX compilers to native CPU (support older hw) --- docker/base/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/base/Dockerfile b/docker/base/Dockerfile index fa3eadb..c0d24ce 100644 --- a/docker/base/Dockerfile +++ b/docker/base/Dockerfile @@ -35,11 +35,12 @@ ENV OSX_SDK MacOSX10.6.sdk RUN \ git clone https://github.com/tpoechtrager/osxcross.git && \ \ - $FETCH $OSX_SDK_PATH f526b4ae9806e8d31e3b094e3f004f8f160a3fad && \ + $FETCH $OSX_SDK_PATH f526b4ae9806e8d31e3b094e3f004f8f160a3fad && \ tar -xzf `basename $OSX_SDK_PATH` --strip-components 1 SDKs/$OSX_SDK && \ - tar -cjf /osxcross/tarballs/$OSX_SDK.tar.bz2 $OSX_SDK && \ - rm -rf `basename $OSX_SDK_PATH` $OSX_SDK && \ + tar -cjf /osxcross/tarballs/$OSX_SDK.tar.bz2 $OSX_SDK && \ + rm -rf `basename $OSX_SDK_PATH` $OSX_SDK && \ \ + sed -i -e 's|-march=native||g' /osxcross/build_clang.sh /osxcross/wrapper/build.sh && \ UNATTENDED=yes OSX_VERSION_MIN=10.6 /osxcross/build.sh ENV PATH /osxcross/target/bin:$PATH