Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Disable cgo #70

Merged
merged 1 commit into from
Jun 1, 2020
Merged

Disable cgo #70

merged 1 commit into from
Jun 1, 2020

Conversation

condemil
Copy link
Contributor

@condemil condemil commented Jun 1, 2020

This allows to run binaries without being dependant on glibc in a cases when it is not available, like busybox or alpine docker image.

# go build
# ldd wireguard-ui
	linux-vdso.so.1 (0x00007ffdef2f3000)
	libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3daf66a000)
	libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3daf478000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f3daf691000)


# CGO_ENABLED=0 go build
# ldd wireguard-ui
	not a dynamic executable

@suom1 suom1 merged commit 4a9529a into EmbarkStudios:master Jun 1, 2020
@suom1
Copy link
Member

suom1 commented Jun 1, 2020

Good idea, thanks @condemil

@condemil condemil deleted the patch-1 branch June 1, 2020 10:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants