From: Cédric Ollivier Date: Wed, 5 Aug 2020 13:49:30 +0000 (+0200) Subject: Set CFLAGS="-O0" when cross-compiling lxml X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F65%2F70665%2F1;p=functest-xtesting.git Set CFLAGS="-O0" when cross-compiling lxml Change-Id: I57ae3a76d1838ccde2699a1a206487079c7f2fae Signed-off-by: Cédric Ollivier --- diff --git a/docker/core/Dockerfile b/docker/core/Dockerfile index 58389734..d8f1672e 100644 --- a/docker/core/Dockerfile +++ b/docker/core/Dockerfile @@ -6,6 +6,11 @@ ARG OPENSTACK_TAG=master RUN apk --no-cache add --update python3 py3-pip bash git mailcap libxml2 libxslt && \ apk --no-cache add --virtual .build-deps --update \ python3-dev build-base libxml2-dev libxslt-dev && \ + case $(uname -m) in aarch*|arm*) CFLAGS="-O0" \ + pip3 install --no-cache-dir \ + -chttps://opendev.org/openstack/requirements/raw/branch/$OPENSTACK_TAG/upper-constraints.txt \ + -chttps://git.opnfv.org/functest-xtesting/plain/upper-constraints.txt?h=$BRANCH \ + lxml && \ git init /src/functest-xtesting && \ (cd /src/functest-xtesting && \ git fetch --tags https://gerrit.opnfv.org/gerrit/functest-xtesting $BRANCH && \