Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKir Kolyshkin <kir@openvz.org>2016-10-26 07:46:40 +0300
committerPavel Emelyanov <xemul@virtuozzo.com>2016-11-02 20:35:57 +0300
commit1ccc94ffc593bdfd00701d0e9e998d27bae64114 (patch)
treef5a00430a10fc6c76a0bbeb7081798e42191a888 /scripts/build/Dockerfile.alpine
parent3541b0d8f9a50cc0d6abb9837a73f9a122835cad (diff)
scripts/build: add clang targets
With this, one can do a CRUI build via QEMU+Docker using clang as a compiler, for example: make -C scripts/build alpine-clang make -C scripts/build ppc64le-clang For alpine, default clang version is used. For others, a version has to be specified explicitly, as there is no package called "clang" in Ubuntu Trusty (which is used as a base for most arches). Since clang-3.8 appears to be available from Trusty, and this is the current stable version of clang, let's use it. travis-ci: success for QEMU+Dockerfile improvements + clang build Signed-off-by: Kir Kolyshkin <kir@openvz.org> Acked-by: Andrei Vagin <avagin@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Diffstat (limited to 'scripts/build/Dockerfile.alpine')
-rw-r--r--scripts/build/Dockerfile.alpine6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/build/Dockerfile.alpine b/scripts/build/Dockerfile.alpine
index ad356bc7b..c8f79dc87 100644
--- a/scripts/build/Dockerfile.alpine
+++ b/scripts/build/Dockerfile.alpine
@@ -1,4 +1,5 @@
FROM alpine:3.4
+ARG CC=gcc
RUN apk update && apk add \
build-base \
coreutils \
@@ -9,7 +10,8 @@ RUN apk update && apk add \
libaio-dev \
libcap-dev \
libnl3-dev \
- pkgconfig
+ pkgconfig \
+ $CC
COPY . /criu
WORKDIR /criu
-RUN make mrproper && make -j $(nproc)
+RUN make mrproper && make -j $(nproc) CC=$CC