args=(-fPIC
	-m64
	-pthread
	-Wl,--no-gc-sections
	-fmessage-length=0
	-ffile-prefix-map=$(pwd)=/tmp/go-build
	-gno-record-gcc-switches
	-ffile-prefix-map=/home/fox/Git/prosjekter/Go/go/src/os/user=/_/os/user
	-frandom-seed=bqQ8bmxmEJvrgHub9Yf7)

for d in build1 build2 test; do
	mkdir "$d"
	cp ./getgrouplist_unix.cgo2.c "$d/"
	(cd "$d"
	gcc ${args[@]} -o ./_x004-no-lto.o -c getgrouplist_unix.cgo2.c
	gcc ${args[@]} -flto -o ./_x004-lto.o -c getgrouplist_unix.cgo2.c)
	sha256sum $d/_x0*
	rm -rf "$d"
done
