2014-10-17 13:42:56 +02:00
|
|
|
FROM steeve/cross-compiler:base
|
|
|
|
MAINTAINER Steeve Morin "steeve.morin@gmail.com"
|
|
|
|
|
|
|
|
ENV CROSS_TRIPLE x86_64-linux-gnu
|
|
|
|
ENV CROSS_ROOT /usr/${CROSS_TRIPLE}
|
|
|
|
ENV PATH ${PATH}:${CROSS_ROOT}/bin
|
|
|
|
ENV LD_LIBRARY_PATH ${CROSS_ROOT}/lib:${LD_LIBRARY_PATH}
|
|
|
|
|
|
|
|
RUN mkdir -p ${CROSS_ROOT} && \
|
|
|
|
cd /usr/bin && \
|
|
|
|
ln -s ${CROSS_TRIPLE}-gcc ${CROSS_TRIPLE}-cc && \
|
2014-11-05 23:39:49 +01:00
|
|
|
ln -s ${CROSS_TRIPLE}-g++ ${CROSS_TRIPLE}-c++ && \
|
2014-11-13 19:05:41 +01:00
|
|
|
for i in strip objdump; do \
|
|
|
|
ln -s ${i} ${CROSS_TRIPLE}-${i} ; \
|
|
|
|
done && \
|
2014-11-05 23:10:24 +01:00
|
|
|
for i in ranlib nm ar; do \
|
|
|
|
ln -s ${CROSS_TRIPLE}-gcc-${i}-4.7 ${CROSS_TRIPLE}-${i} ; \
|
|
|
|
done
|