Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ RETINA_PLATFORM_TAG = $(TAG)-windows-ltsc$(YEAR)-amd64
endif

qemu-user-static: ## Set up the host to run qemu multiplatform container builds.
sudo $(CONTAINER_RUNTIME) run --rm --privileged multiarch/qemu-user-static --reset -p yes
sudo $(CONTAINER_RUNTIME) run --rm --privileged tonistiigi/binfmt --install arm64

.PHONY: version
version: ## prints the root version
Expand Down
4 changes: 3 additions & 1 deletion shell/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ RUN set -eux; \
# GOEXPERIMENT=none disables the Microsoft Go OpenSSL crypto backend,
# which dlopens libcrypto at startup and crashes inside a statically
# linked binary. pwru does not need FIPS crypto.
GOEXPERIMENT=none make TARGET_GOARCH="$GOARCH" LIBPCAP_ARCH="$LIBPCAP_ARCH"; \
# CC=clang: the ADO pipeline builds arm64 under QEMU, and gcc cc1
# crashes there with an internal compiler error. clang does not.
GOEXPERIMENT=none CC=clang make TARGET_GOARCH="$GOARCH" LIBPCAP_ARCH="$LIBPCAP_ARCH"; \
file pwru | grep -q 'ELF'; \
# the binary must start; a broken crypto backend or link crashes here
./pwru --version
Expand Down
Loading