mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 10:37:33 -07:00
More build fixes.
This commit is contained in:
parent
8de5b2beda
commit
147f735333
5 changed files with 42 additions and 8 deletions
|
@ -5,10 +5,13 @@ RUN yum update -y
|
|||
RUN yum install -y epel-release
|
||||
RUN yum install -y make development-tools rpmdevtools http-parser-devel lz4-devel libnatpmp-devel
|
||||
|
||||
RUN yum install -y centos-release-scl
|
||||
RUN yum install -y devtoolset-4-gcc-c++
|
||||
#RUN yum install -y centos-release-scl
|
||||
#RUN yum install -y devtoolset-4-gcc-c++
|
||||
|
||||
RUN ln -sf /opt/rh/devtoolset-4/root/usr/bin/gcc /usr/bin/gcc
|
||||
RUN ln -sf /opt/rh/devtoolset-4/root/usr/bin/g++ /usr/bin/g++
|
||||
RUN yum install -y clang
|
||||
RUN yum install -y gcc-c++
|
||||
|
||||
#RUN ln -sf /opt/rh/devtoolset-4/root/usr/bin/gcc /usr/bin/gcc
|
||||
#RUN ln -sf /opt/rh/devtoolset-4/root/usr/bin/g++ /usr/bin/g++
|
||||
|
||||
ADD zt1-src.tar.gz /
|
||||
|
|
|
@ -17,7 +17,7 @@ RUN yum install -y gcc-c++
|
|||
|
||||
ADD zt1-src.tar.gz /
|
||||
|
||||
RUN mv /ZeroTierOne/make-linux.mk /ZeroTierOne/make-linux.mk.old
|
||||
RUN echo 'CFLAGS=-O3 -fstack-protector' >/ZeroTierOne/make-linux.mk
|
||||
RUN echo 'CXXFLAGS=-O3 -fstack-protector' >>/ZeroTierOne/make-linux.mk
|
||||
RUN cat /ZeroTierOne/make-linux.mk.old >>/ZeroTierOne/make-linux.mk
|
||||
#RUN mv /ZeroTierOne/make-linux.mk /ZeroTierOne/make-linux.mk.old
|
||||
#RUN echo 'CFLAGS=-O3 -fstack-protector' >/ZeroTierOne/make-linux.mk
|
||||
#RUN echo 'CXXFLAGS=-O3 -fstack-protector' >>/ZeroTierOne/make-linux.mk
|
||||
#RUN cat /ZeroTierOne/make-linux.mk.old >>/ZeroTierOne/make-linux.mk
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue