]> Git Repo - cpuminer-multi.git/blame - build.sh
lyra2v3 algo for incoming VTC fork
[cpuminer-multi.git] / build.sh
CommitLineData
f64adb32
TP
1#!/bin/bash
2
1720eb84
TP
3if [ "$OS" = "Windows_NT" ]; then
4 ./mingw64.sh
5 exit 0
6fi
7
5751a49a 8# Linux build
f64adb32
TP
9
10make clean || echo clean
11
12rm -f config.status
13./autogen.sh || echo done
14
5751a49a 15# Ubuntu 10.04 (gcc 4.4)
afb4db78 16# extracflags="-O3 -march=native -Wall -D_REENTRANT -funroll-loops -fvariable-expansion-in-unroller -fmerge-all-constants -fbranch-target-load-optimize2 -fsched2-use-superblocks -falign-loops=16 -falign-functions=16 -falign-jumps=16 -falign-labels=16"
5751a49a 17
4af22b92
TP
18# Debian 7.7 / Ubuntu 14.04 (gcc 4.7+)
19extracflags="$extracflags -Ofast -flto -fuse-linker-plugin -ftree-loop-if-convert-stores"
f64adb32 20
6f913271
TP
21if [ ! "0" = `cat /proc/cpuinfo | grep -c avx` ]; then
22 # march native doesn't always works, ex. some Pentium Gxxx (no avx)
23 extracflags="$extracflags -march=native"
24fi
25
afb4db78 26./configure --with-crypto --with-curl CFLAGS="-O2 $extracflags -DUSE_ASM -pg"
f64adb32
TP
27
28make -j 4
fd9a9c13 29
afb4db78 30strip -s cpuminer
This page took 0.025462 seconds and 4 git commands to generate.