mirror of https://github.com/status-im/xgo.git
Update OSX SDK to 10.9 from 10.6.
This commit is contained in:
parent
029adf7731
commit
841783b7fe
|
@ -29,16 +29,14 @@ RUN \
|
||||||
ln -s /usr/include/asm-generic /usr/include/asm
|
ln -s /usr/include/asm-generic /usr/include/asm
|
||||||
|
|
||||||
# Configure the container for OSX cross compilation
|
# Configure the container for OSX cross compilation
|
||||||
ENV OSX_SDK_PATH https://github.com/trevd/android_platform_build2/raw/master/osxsdks10.6.tar.gz
|
ENV OSX_SDK_PATH https://s3.amazonaws.com/andrew-osx-sdks/MacOSX10.9.sdk.tar.xz
|
||||||
ENV OSX_SDK MacOSX10.6.sdk
|
ENV OSX_SDK MacOSX10.9.sdk
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
git clone https://github.com/tpoechtrager/osxcross.git && \
|
git clone https://github.com/tpoechtrager/osxcross.git && \
|
||||||
\
|
\
|
||||||
$FETCH $OSX_SDK_PATH f526b4ae9806e8d31e3b094e3f004f8f160a3fad && \
|
$FETCH $OSX_SDK_PATH e2f01f6dc7611df4783d2adc279d15132f4e9851 && \
|
||||||
tar -xzf `basename $OSX_SDK_PATH` --strip-components 1 SDKs/$OSX_SDK && \
|
mv `basename $OSX_SDK_PATH` /osxcross/tarballs/ && \
|
||||||
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 && \
|
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
|
UNATTENDED=yes OSX_VERSION_MIN=10.6 /osxcross/build.sh
|
||||||
|
|
|
@ -181,13 +181,13 @@ for TARGET in $TARGETS; do
|
||||||
# Check and build for OSX targets
|
# Check and build for OSX targets
|
||||||
if ([ $XGOOS == "." ] || [ $XGOOS == "darwin" ]) && ([ $XGOARCH == "." ] || [ $XGOARCH == "amd64" ]); then
|
if ([ $XGOOS == "." ] || [ $XGOOS == "darwin" ]) && ([ $XGOARCH == "." ] || [ $XGOARCH == "amd64" ]); then
|
||||||
echo "Compiling for darwin/amd64..."
|
echo "Compiling for darwin/amd64..."
|
||||||
CC=o64-clang CXX=o64-clang++ HOST=x86_64-apple-darwin10 PREFIX=/usr/local $BUILD_DEPS /deps
|
CC=o64-clang CXX=o64-clang++ HOST=x86_64-apple-darwin13 PREFIX=/usr/local $BUILD_DEPS /deps
|
||||||
CC=o64-clang CXX=o64-clang++ GOOS=darwin GOARCH=amd64 CGO_ENABLED=1 go get $V $X "${T[@]}" --ldflags="-s $LD" -d ./$PACK
|
CC=o64-clang CXX=o64-clang++ GOOS=darwin GOARCH=amd64 CGO_ENABLED=1 go get $V $X "${T[@]}" --ldflags="-s $LD" -d ./$PACK
|
||||||
CC=o64-clang CXX=o64-clang++ GOOS=darwin GOARCH=amd64 CGO_ENABLED=1 go build $V $X "${T[@]}" --ldflags="-s $LD" $R -o /build/$NAME-darwin-amd64$R ./$PACK
|
CC=o64-clang CXX=o64-clang++ GOOS=darwin GOARCH=amd64 CGO_ENABLED=1 go build $V $X "${T[@]}" --ldflags="-s $LD" $R -o /build/$NAME-darwin-amd64$R ./$PACK
|
||||||
fi
|
fi
|
||||||
if ([ $XGOOS == "." ] || [ $XGOOS == "darwin" ]) && ([ $XGOARCH == "." ] || [ $XGOARCH == "386" ]); then
|
if ([ $XGOOS == "." ] || [ $XGOOS == "darwin" ]) && ([ $XGOARCH == "." ] || [ $XGOARCH == "386" ]); then
|
||||||
echo "Compiling for darwin/386..."
|
echo "Compiling for darwin/386..."
|
||||||
CC=o32-clang CXX=o32-clang++ HOST=i386-apple-darwin10 PREFIX=/usr/local $BUILD_DEPS /deps
|
CC=o32-clang CXX=o32-clang++ HOST=i386-apple-darwin13 PREFIX=/usr/local $BUILD_DEPS /deps
|
||||||
CC=o32-clang CXX=o32-clang++ GOOS=darwin GOARCH=386 CGO_ENABLED=1 go get $V $X "${T[@]}" --ldflags="-s $LD" -d ./$PACK
|
CC=o32-clang CXX=o32-clang++ GOOS=darwin GOARCH=386 CGO_ENABLED=1 go get $V $X "${T[@]}" --ldflags="-s $LD" -d ./$PACK
|
||||||
CC=o32-clang CXX=o32-clang++ GOOS=darwin GOARCH=386 CGO_ENABLED=1 go build $V $X "${T[@]}" --ldflags="-s $LD" -o /build/$NAME-darwin-386 ./$PACK
|
CC=o32-clang CXX=o32-clang++ GOOS=darwin GOARCH=386 CGO_ENABLED=1 go build $V $X "${T[@]}" --ldflags="-s $LD" -o /build/$NAME-darwin-386 ./$PACK
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue