aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-12-24 09:15:21 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-01-22 13:02:39 +1300
commit071bce0fd141f7d7e5a83248b6e67f79d8acd897 (patch)
tree6fe8ca0f9460a8b49f83b49068e2ddff8492c7db
parentaf6da3090ab461011978d83b16227f2f0166c823 (diff)
downloadsubsurface-071bce0fd141f7d7e5a83248b6e67f79d8acd897.tar.gz
Android Dockerfile: ugly hack to deal with current NDK compile problems
As explained in commit 449d4ee33d ("Android build: add explanation for huge hack"). It seems reasonable to add this to our Travis image as that is custom made just to build our Android binaries. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--scripts/docker/android-build-container/Dockerfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/docker/android-build-container/Dockerfile b/scripts/docker/android-build-container/Dockerfile
index afa317009..9597e20db 100644
--- a/scripts/docker/android-build-container/Dockerfile
+++ b/scripts/docker/android-build-container/Dockerfile
@@ -31,6 +31,10 @@ ADD android-build-wrapper.sh variables.sh qt-installer-noninteractive.qs /androi
# run the build wrapper in prep mode
RUN cd /android && bash -x /android/android-build-wrapper.sh -prep-only
+# uggly hack to work around some breakage in the NDK which makes our
+# compiles fail
+RUN sed -i '313,+13s/^using/\/\/using/' /android/android-ndk-r18b/sources/cxx-stl/llvm-libc++/include/cmath
+
# clean up the files that we don't need to keep the container smaller
RUN cd /android && \
rm -rf qt-opensource-linux-x64-*.run \