Skip to content

Commit

Permalink
revert clang compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
1ma committed Jun 24, 2024
1 parent b62e657 commit f688f21
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN apk add --no-cache \
&& sha256sum --ignore-missing -c SHA256SUMS


FROM alpine:3.20 AS builder
FROM alpine:3.18 AS builder

ARG KNOTS_VERSION

Expand All @@ -32,7 +32,6 @@ RUN apk add --no-cache \
autoconf \
automake \
build-base \
clang18 \
curl \
git \
libtool \
Expand All @@ -43,9 +42,6 @@ RUN tar zxf bitcoin-${KNOTS_VERSION}.tar.gz

RUN ./bitcoin-${KNOTS_VERSION}/autogen.sh

ENV CC=clang-18
ENV CXX=clang++-18

RUN make -C bitcoin-${KNOTS_VERSION}/depends -j$(nproc) NO_QT=1 NO_NATPMP=1 NO_UPNP=1 NO_USDT=1

ENV CFLAGS="-O2 --static -static -fPIC"
Expand All @@ -63,6 +59,7 @@ RUN CONFIG_SITE=$(find /tmp/bitcoin-${KNOTS_VERSION}/depends | grep -E "config\.
--disable-maintainer-mode \
--disable-man \
--disable-tests \
--enable-lto \
--with-daemon=yes \
--with-gui=no \
--with-libmultiprocess=no \
Expand Down

0 comments on commit f688f21

Please sign in to comment.