Skip to content

Commit

Permalink
mingw: build statically for msys/mingw compat
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Dec 7, 2015
1 parent 24f996f commit 69cfc00
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ cpuminer_CFLAGS = -Wno-pointer-sign -Wno-pointer-to-int-cast $(disable_flags)

if HAVE_WINDOWS
cpuminer_CFLAGS += -Wl,--stack,10485760
cpuminer_LDADD += -lcrypt32 -lgdi32
cpuminer_LDADD += -lcrypt32 -lgdi32 -lgcc -lgcc_eh
endif

if HAVE_WINDOWS
Expand Down
5 changes: 1 addition & 4 deletions cpuminer.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
<ClCompile Include="sha3\sph_hamsi_helper.c">
<Filter>sph</Filter>
</ClCompile>
<ClCompile Include="sha3\sph_haval.c">
<Filter>sph</Filter>
</ClCompile>
<ClCompile Include="sha3\sph_hefty1.c">
<Filter>sph</Filter>
</ClCompile>
Expand Down Expand Up @@ -560,4 +557,4 @@
<Filter>res</Filter>
</ResourceCompile>
</ItemGroup>
</Project>
</Project>
4 changes: 3 additions & 1 deletion mingw64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ extracflags="-O3 -Wall -D_REENTRANT -fmerge-all-constants" # -funroll-loops -fva
# gcc 4.8+
# extracflags="$extracflags -Ofast -fuse-linker-plugin -ftree-loop-if-convert-stores" # -flto "

# extracflags="$extracflags -march=native"

# extracflags="-pg -static -fno-inline-small-functions"
CFLAGS="-DCURL_STATICLIB -DOPENSSL_NO_ASM -DUSE_ASM $extracflags"
CFLAGS="-DCURL_STATICLIB -DOPENSSL_NO_ASM -DUSE_ASM -static-libgcc $extracflags"
# CPPFLAGS=""

# icon
Expand Down

0 comments on commit 69cfc00

Please sign in to comment.