Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

differentiate gcc-powerpc-linux-gnu package name on different architecture #3434

Merged
merged 3 commits into from
May 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion consensus/cryptonight-rs/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
6 changes: 5 additions & 1 deletion scripts/dev_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down