Skip to content

Commit

Permalink
Use cross-toolchain ar to when building PDCurses
Browse files Browse the repository at this point in the history
The native ar is not necessarily compatible with Mingw-w64, particularly
aarch64-linux-gnu-ar when compiling w64devkit from a Raspberry Pi.
  • Loading branch information
skeeto committed Nov 3, 2022
1 parent 32e2f8b commit 20f1d62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 20f1d62

Please sign in to comment.