From 935e3fa84a059150083a08e1fae24f30dc57c325 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Wed, 13 May 2015 15:26:08 -0400 Subject: [PATCH] linux-armv6: Add environmental variables for qemu dynamic loading. --- linux-armv6/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/linux-armv6/Dockerfile b/linux-armv6/Dockerfile index 92d3d1e..fbe4a09 100644 --- a/linux-armv6/Dockerfile +++ b/linux-armv6/Dockerfile @@ -23,6 +23,9 @@ ENV RASPBERRYPI_TOOLS_COMMIT 9c3d7b6ac692498dd36fec2872e0b55f910baac1 RUN curl -L https://github.com/raspberrypi/tools/archive/${RASPBERRYPI_TOOLS_COMMIT}.tar.gz | tar xvz --wildcards --no-anchored "*gcc-linaro-${CROSS_TRIPLE}-raspbian*" && \ rsync -av /usr/src/tools-${RASPBERRYPI_TOOLS_COMMIT}/arm-bcm2708/gcc-linaro-${CROSS_TRIPLE}-raspbian/ /usr/ && \ rm -rf /usr/src/tools-${RASPBERRYPI_TOOLS_COMMIT} +# Allow dynamically linked executables to run with qemu-arm +ENV QEMU_LD_PREFIX /usr/${CROSS_TRIPLE}/libc +ENV QEMU_SET_ENV "LD_LIBRARY_PATH=/usr/${CROSS_TRIPLE}/lib:/usr/${CROSS_TRIPLE}/libc/lib/${CROSS_TRIPLE}/" COPY Toolchain.cmake /usr/${CROSS_TRIPLE}/ ENV CMAKE_TOOLCHAIN_FILE /usr/${CROSS_TRIPLE}/Toolchain.cmake