added option to get changed / added env vars in JSON format.

pull/1598/head
Daniel Van Der Maden 5 years ago
parent 4d194f69a5
commit 7b66db372e
  1. 13
      scripts/setup_bls_build_flags.sh

@ -36,10 +36,9 @@ case $OS in
;;
esac
echo Added Env Vars:
echo
echo \"CGO_CFLAGS\" : \"$CGO_CFLAGS\",
echo \"CGO_LDFLAGS\" : \"$CGO_LDFLAGS\",
echo \"LD_LIBRARY_PATH\" : \"$LD_LIBRARY_PATH\",
echo \"DYLD_FALLBACK_LIBRARY_PATH\" : \"$DYLD_FALLBACK_LIBRARY_PATH\"
echo
if [ $1 == '-v' ]; then
printf "{ \"CGO_CFLAGS\" : \"$CGO_CFLAGS\",
\"CGO_LDFLAGS\" : \"$CGO_LDFLAGS\",
\"LD_LIBRARY_PATH\" : \"$LD_LIBRARY_PATH\",
\"DYLD_FALLBACK_LIBRARY_PATH\" : \"$DYLD_FALLBACK_LIBRARY_PATH\"}"
fi

Loading…
Cancel
Save