Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
tpruvot
GitHub Repository: tpruvot/cpuminer-multi
Path: blob/linux/mingw64.sh
1201 views
1
./autogen.sh
2
3
CURL_PREFIX=/usr/local
4
SSL_PREFIX=/usr/local/ssl
5
6
# gcc 4.4
7
extracflags="-O3 -Wall -D_REENTRANT -fmerge-all-constants" # -funroll-loops -fvariable-expansion-in-unroller -fbranch-target-load-optimize2 -fsched2-use-superblocks -falign-loops=16 -falign-functions=16 -falign-jumps=16 -falign-labels=16"
8
9
# gcc 4.8+
10
# extracflags="$extracflags -Ofast -fuse-linker-plugin -ftree-loop-if-convert-stores" # -flto "
11
12
# extracflags="$extracflags -march=native"
13
14
# extracflags="-pg -static -fno-inline-small-functions"
15
CFLAGS="-DCURL_STATICLIB -DOPENSSL_NO_ASM -DUSE_ASM -static-libgcc $extracflags"
16
# CPPFLAGS=""
17
18
# icon
19
windres res/icon.rc icon.o
20
21
./configure --build=x86_64-w64-mingw32 --with-crypto=$SSL_PREFIX --with-curl=$CURL_PREFIX \
22
CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" LDFLAGS="icon.o"
23
24
make
25
26
strip -p --strip-debug --strip-unneeded cpuminer.exe
27
28
if [ -e sign.sh ] ; then
29
. sign.sh
30
fi
31
32
33