calapi/setupEnv.sh
2023-02-24 22:17:45 +01:00

5 lines
No EOL
181 B
Bash
Executable file

#!/usr/bin/env bash
# This is needed to look for libraries in ./lib on compile and
# at <executable location>/lib on runtime.
export CGO_LDFLAGS="-L./lib -Wl,-rpath,\$ORIGIN/lib"