diff --git a/consensus/cryptonight-rs/build.rs b/consensus/cryptonight-rs/build.rs index 32b4b3e6f0..d027b66d9f 100644 --- a/consensus/cryptonight-rs/build.rs +++ b/consensus/cryptonight-rs/build.rs @@ -26,7 +26,10 @@ fn main() { config.flag("-maes").flag("-msse2"); } if target_os.contains("linux") || target_os.contains("macos") { - config.flag("-Ofast").flag("-fexceptions"); + config + .flag("-Ofast") + .flag("-fexceptions") + .flag("-std=gnu99"); } config.compile("cryptonight"); } diff --git a/scripts/dev_setup.sh b/scripts/dev_setup.sh index 19d03f246c..d8d6e00aee 100755 --- a/scripts/dev_setup.sh +++ b/scripts/dev_setup.sh @@ -377,7 +377,11 @@ function install_gcc_powerpc_linux_gnu { PACKAGE_MANAGER=$1 #Differently named packages for gcc-powerpc-linux-gnu if [[ "$PACKAGE_MANAGER" == "apt-get" ]] || [[ "$PACKAGE_MANAGER" == "yum" ]]; then - install_pkg gcc-powerpc-linux-gnu "$PACKAGE_MANAGER" + if [[ "$(getconf LONG_BIT)" == "64" ]]; then + install_pkg gcc-powerpc64-linux-gnu "$PACKAGE_MANAGER" + else + install_pkg gcc-powerpc-linux-gnu "$PACKAGE_MANAGER" + fi fi #if [[ "$PACKAGE_MANAGER" == "pacman" ]]; then # install_pkg powerpc-linux-gnu-gcc "$PACKAGE_MANAGER"