Build libssp from gcc
gcc/libssp's configure script runs checks for flags that clang doesn't implement. We actually just need to set a few HAVE defines and compile the .c sources, so just check out this subdirectory using svn and build it using a custom makefile.
This commit is contained in:
1 parent
61eaf3a0de
commit
c9db1e06b5
6 files changed
+70
-3
No files matched your search
+6
-1
@@ -2,7 +2,8 @@ FROM ubuntu:16.04
|
||||
|
||||
RUN apt-get update -qq && apt-get install -qqy \
|
||||
git wget bzip2 file unzip libtool pkg-config cmake build-essential \
|
||||
automake yasm gettext autopoint vim python git-svn ninja-build && \
|
||||
automake yasm gettext autopoint vim python git-svn ninja-build \
|
||||
subversion && \
|
||||
apt-get clean -y && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@@ -68,6 +69,10 @@ RUN cd test && \
|
||||
done; \
|
||||
done
|
||||
|
||||
# Build libssp
|
||||
COPY build-libssp.sh libssp-Makefile ./
|
||||
RUN ./build-libssp.sh $TOOLCHAIN_PREFIX
|
||||
|
||||
# Strip the final toolchain. (This doesn't reduce the total docker image
|
||||
# size as long as it is in a separate RUN layer though.)
|
||||
COPY strip-llvm.sh .
|
||||
|
||||
Reference in new issue
Block a user