Advertisement
buonleloi

build_xzc.sh

Feb 22nd, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.83 KB | None | 0 0
  1. #!/bin/bash
  2. cd ~/
  3.  
  4. export OBJECT_MODE=64
  5.  
  6. if grep -q avx2 /proc/cpuinfo; then
  7.  
  8.     rm -rf cpuminer-opt/
  9.     rm cpuminer
  10.  
  11.     git clone https://github.com/JayDDee/cpuminer-opt
  12.  
  13.     cd cpuminer-opt/
  14.  
  15.     ./autogen.sh
  16.     CFLAGS="-Ofast -march=native -mtune=native -DUSE_ASM" CXXFLAGS="$CFLAGS -std=gnu++11" ./configure --with-curl --with-crypto
  17.     make
  18.     strip -s cpuminer
  19.     mv cpuminer ~/cpuminer
  20.  
  21.     cd ~/
  22.  
  23.     chmod +x cpuminer
  24.  
  25. else
  26.  
  27.     rm -rf cpuminer-xzc/
  28.     rm cpuminer
  29.  
  30.     git clone https://github.com/zcoinofficial/cpuminer-xzc
  31.  
  32.     cd cpuminer-xzc/
  33.  
  34.     ./autogen.sh
  35.     CFLAGS="-Ofast -march=native -mtune=native -DROW_PREFETCH -flto -fuse-linker-plugin -ftree-loop-if-convert-stores -DUSE_ASM" CXXFLAGS="$CFLAGS -std=gnu++11" ./configure --with-crypto --with-curl
  36.     make
  37.     strip -s cpuminer
  38.     mv cpuminer ~/cpuminer
  39.  
  40.     cd ~/
  41.  
  42.     chmod +x cpuminer
  43.  
  44. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement