From 20f1d620b148ef5ba32e67b57c3b7a034858bf24 Mon Sep 17 00:00:00 2001 From: Christopher Wellons Date: Wed, 2 Nov 2022 20:59:33 -0400 Subject: [PATCH] Use cross-toolchain ar to when building PDCurses The native ar is not necessarily compatible with Mingw-w64, particularly aarch64-linux-gnu-ar when compiling w64devkit from a Raspberry Pi. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 062a831..1003109 100644 --- a/Dockerfile +++ b/Dockerfile @@ -320,7 +320,7 @@ RUN /expat-$EXPAT_VERSION/configure \ WORKDIR /PDCurses-$PDCURSES_VERSION RUN make -j$(nproc) -C wincon \ - CFLAGS="-I.. -Os -DPDC_WIDE" CC=$ARCH-gcc pdcurses.a \ + CC=$ARCH-gcc AR=$ARCH-ar CFLAGS="-I.. -Os -DPDC_WIDE" pdcurses.a \ && cp wincon/pdcurses.a /deps/lib/libcurses.a \ && cp curses.h /deps/include