./autogen.sh12CURL_PREFIX=/usr/local3SSL_PREFIX=/usr/local/ssl45# gcc 4.46extracflags="-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"78# gcc 4.8+9# extracflags="$extracflags -Ofast -fuse-linker-plugin -ftree-loop-if-convert-stores" # -flto "1011# extracflags="$extracflags -march=native"1213# extracflags="-pg -static -fno-inline-small-functions"14CFLAGS="-DCURL_STATICLIB -DOPENSSL_NO_ASM -DUSE_ASM -static-libgcc $extracflags"15# CPPFLAGS=""1617# icon18windres res/icon.rc icon.o1920./configure --build=x86_64-w64-mingw32 --with-crypto=$SSL_PREFIX --with-curl=$CURL_PREFIX \21CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" LDFLAGS="icon.o"2223make2425strip -p --strip-debug --strip-unneeded cpuminer.exe2627if [ -e sign.sh ] ; then28. sign.sh29fi30313233