linux-x64: Update to thewtex/cross-compiler-base as base.

This commit is contained in:
Matt McCormick 2016-03-28 12:45:57 -04:00
parent cdc74c8d33
commit d290428a42

View File

@ -1,18 +1,11 @@
FROM steeve/cross-compiler:base FROM thewtex/cross-compiler-base
MAINTAINER Steeve Morin "steeve.morin@gmail.com" MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
ENV CROSS_TRIPLE x86_64-linux-gnu ENV CROSS_TRIPLE x86_64-linux-gnu
ENV CROSS_ROOT /usr/${CROSS_TRIPLE} ENV CROSS_ROOT /usr/bin/${CROSS_TRIPLE}
ENV PATH ${PATH}:${CROSS_ROOT}/bin ENV AS=/usr/bin/${CROSS_TRIPLE}-as \
ENV LD_LIBRARY_PATH ${CROSS_ROOT}/lib:${LD_LIBRARY_PATH} AR=/usr/bin/${CROSS_TRIPLE}-ar \
CC=/usr/bin/${CROSS_TRIPLE}-gcc \
RUN mkdir -p ${CROSS_ROOT} && \ CPP=/usr/bin/${CROSS_TRIPLE}-cpp \
cd /usr/bin && \ CXX=/usr/bin/${CROSS_TRIPLE}-g++ \
ln -s ${CROSS_TRIPLE}-gcc ${CROSS_TRIPLE}-cc && \ LD=/usr/bin/${CROSS_TRIPLE}-ld
ln -s ${CROSS_TRIPLE}-g++ ${CROSS_TRIPLE}-c++ && \
for i in strip objdump; do \
ln -s ${i} ${CROSS_TRIPLE}-${i} ; \
done && \
for i in ranlib nm ar; do \
ln -s ${CROSS_TRIPLE}-gcc-${i}-4.7 ${CROSS_TRIPLE}-${i} ; \
done