ansible-role--bashrc/files/bashrc.d/55-dev-go.sh

21 lines
359 B
Bash
Raw Permalink Normal View History

2021-12-31 12:03:38 +00:00
#!/bin/sh
##
# Set up Go environment
#
if hash go > /dev/null 2>&1; then
if [ -d "$HOME/bin" ]; then
export GOPATH="$HOME/src/Go"
export PATH="$GOPATH/bin:$PATH"
# For QT
export CGO_CXXFLAGS_ALLOW=".*"
export CGO_LDFLAGS_ALLOW=".*"
export CGO_CFLAGS_ALLOW=".*"
export QT_DIR=/usr/lib/x86_64-linux-gnu/qt5
export QT_PKG_CONFIG=true
fi
fi