Files
frankenphp/go.sh
2025-07-17 10:14:18 +02:00

8 lines
254 B
Bash
Executable File

#!/bin/sh
# Runs the go command with the proper Go and cgo flags.
GOFLAGS="$GOFLAGS -tags=nobadger,nomysql,nopgx" \
CGO_CFLAGS="$CGO_CFLAGS $(php-config --includes)" \
CGO_LDFLAGS="$CGO_LDFLAGS $(php-config --ldflags) $(php-config --libs)" \
go "$@"