Skip to content

Commit

Permalink
More Linux build tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Nov 18, 2024
1 parent 65d3b3f commit 14f47fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tools/build/linux/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ ARG R_MAJOR=4.1
FROM ghcr.io/r-lib/pak-libs:latest AS libs
FROM ghcr.io/r-hub/r-minimal/r-minimal:${R_MAJOR}
COPY --from=libs /usr/local /usr/local
ENV PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig

USER root
WORKDIR /root

Expand Down
2 changes: 1 addition & 1 deletion tools/build/linux/Dockerfile-libs-aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ RUN tar xzf curl-*.tar.gz && rm curl-*.tar.gz
RUN cd curl-* && \
CC=aarch64-alpine-linux-musl-gcc AR=aarch64-alpine-linux-musl-ar \
./configure --host=aarch64-alpine-linux-musl \
--enable-static --disable-shared --with-opennssl \
--enable-static --disable-shared --with-openssl \
--without-libpsl; \
make && \
make install && \
Expand Down
2 changes: 1 addition & 1 deletion tools/build/linux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ R-%-aarch64.done: libs-aarch64.done pak_$(PAKVERSION).tar.gz
R-%.done: libs.done pak_$(PAKVERSION).tar.gz
rm -f $@
docker build --platform linux/amd64 -f Dockerfile --build-arg R_MAJOR=$* \
--build-arg TOKEN="${GHCR_TOKEN}" .
--build-arg TOKEN="${GHCR_TOKEN}" --progress plain .
touch $@

# ------------------------------------------------------------------------
Expand Down

0 comments on commit 14f47fe

Please sign in to comment.