Skip to content

Commit 2b1037a

Browse files
committed
v24.7
1 parent 06624a0 commit 2b1037a

7 files changed

+1063
-819
lines changed

Makefile.am

-4
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,6 @@ cpuminer_LDADD = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ @WS2_LIBS@ -lgmp
292292
cpuminer_CPPFLAGS = @LIBCURL_CPPFLAGS@ $(ALL_INCLUDES)
293293
cpuminer_CFLAGS = -Wno-pointer-sign -Wno-pointer-to-int-cast $(disable_flags)
294294

295-
if HAVE_WINDOWS
296-
cpuminer_CFLAGS += -Wl,--stack,10485760
297-
endif
298-
299295
if HAVE_WINDOWS
300296
# use to profile an object
301297
# gprof_cflags = -pg -g3

RELEASE_NOTES

+4
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ If not what makes it happen or not happen?
7575
Change Log
7676
----------
7777

78+
v24.7
79+
80+
ARM: compile works for Windows using MSys2 & MingW, see wiki for details.
81+
7882
v24.6
7983

8084
ARM: Fixed scryptn2, x16*, broken in v24.2.

configure

+125-47
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/sh
22
# Guess values for system-dependent variables and create Makefiles.
3-
# Generated by GNU Autoconf 2.71 for cpuminer-opt 24.6.
3+
# Generated by GNU Autoconf 2.71 for cpuminer-opt 24.7.
44
#
55
#
66
# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
@@ -608,8 +608,8 @@ MAKEFLAGS=
608608
# Identity of this package.
609609
PACKAGE_NAME='cpuminer-opt'
610610
PACKAGE_TARNAME='cpuminer-opt'
611-
PACKAGE_VERSION='24.6'
612-
PACKAGE_STRING='cpuminer-opt 24.6'
611+
PACKAGE_VERSION='24.7'
612+
PACKAGE_STRING='cpuminer-opt 24.7'
613613
PACKAGE_BUGREPORT=''
614614
PACKAGE_URL=''
615615

@@ -1360,7 +1360,7 @@ if test "$ac_init_help" = "long"; then
13601360
# Omit some internal or obsolete options to make the list less imposing.
13611361
# This message is too long to be a string in the A/UX 3.1 sh.
13621362
cat <<_ACEOF
1363-
\`configure' configures cpuminer-opt 24.6 to adapt to many kinds of systems.
1363+
\`configure' configures cpuminer-opt 24.7 to adapt to many kinds of systems.
13641364
13651365
Usage: $0 [OPTION]... [VAR=VALUE]...
13661366
@@ -1432,7 +1432,7 @@ fi
14321432

14331433
if test -n "$ac_init_help"; then
14341434
case $ac_init_help in
1435-
short | recursive ) echo "Configuration of cpuminer-opt 24.6:";;
1435+
short | recursive ) echo "Configuration of cpuminer-opt 24.7:";;
14361436
esac
14371437
cat <<\_ACEOF
14381438
@@ -1538,7 +1538,7 @@ fi
15381538
test -n "$ac_init_help" && exit $ac_status
15391539
if $ac_init_version; then
15401540
cat <<\_ACEOF
1541-
cpuminer-opt configure 24.6
1541+
cpuminer-opt configure 24.7
15421542
generated by GNU Autoconf 2.71
15431543
15441544
Copyright (C) 2021 Free Software Foundation, Inc.
@@ -1985,7 +1985,7 @@ cat >config.log <<_ACEOF
19851985
This file contains any messages produced by compilers while
19861986
running configure, to aid debugging if configure makes a mistake.
19871987
1988-
It was created by cpuminer-opt $as_me 24.6, which was
1988+
It was created by cpuminer-opt $as_me 24.7, which was
19891989
generated by GNU Autoconf 2.71. Invocation command line was
19901990
19911991
$ $0$ac_configure_args_raw
@@ -3593,7 +3593,7 @@ fi
35933593

35943594
# Define the identity of the package.
35953595
PACKAGE='cpuminer-opt'
3596-
VERSION='24.6'
3596+
VERSION='24.7'
35973597

35983598

35993599
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
@@ -6502,34 +6502,33 @@ then :
65026502
fi
65036503

65046504

6505-
MINGW_TARGET=`$CC -dumpmachine 2>&1`
6506-
case $MINGW_TARGET in
6507-
arm*-*-*)
6508-
have_arm=true
6509-
;;
6510-
i*86-*-mingw*)
6511-
have_x86=true
6512-
have_win32=true
6513-
CFLAGS="-Icompat/pthreads $CFLAGS"
6514-
PTHREAD_LDFLAGS="-Lcompat/pthreads/x86"
6515-
WS2_LIBS="-lws2_32"
6516-
;;
6517-
x86_64-*-mingw*|amd64-*-mingw*)
6518-
have_x86_64=true
6519-
have_win32=true
6520-
CFLAGS="-Icompat/pthreads $CFLAGS"
6521-
PTHREAD_LDFLAGS="-Lcompat/pthreads/x64"
6522-
# SHOULD BE AT END! after -lcrypto #
6523-
WS2_LIBS="-L/mingw/x86_64-w64-mingw32/lib -lws2_32"
6524-
;;
6505+
case $target in
65256506
i*86-*-*)
65266507
have_x86=true
65276508
;;
65286509
x86_64-*-*|amd64-*-*)
65296510
have_x86_64=true
65306511
;;
6512+
arm*-*-*)
6513+
have_arm=true
6514+
;;
6515+
powerpc*-*-*)
6516+
have_ppc=true
6517+
;;
6518+
esac
6519+
6520+
PTHREAD_FLAGS="-pthread"
6521+
WS2_LIBS=""
6522+
6523+
case $target in
6524+
*-*-mingw*)
6525+
have_win32=true
6526+
PTHREAD_FLAGS=""
6527+
WS2_LIBS="-lws2_32"
6528+
;;
65316529
esac
65326530

6531+
65336532
# Check whether --enable-assembly was given.
65346533
if test ${enable_assembly+y}
65356534
then :
@@ -6705,10 +6704,7 @@ else $as_nop
67056704
fi
67066705

67076706

6708-
# GC2 for GNU static
6709-
if test "x$have_win32" = "xtrue" ; then
6710-
# MinGW
6711-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6707+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
67126708
printf %s "checking for pthread_create in -lpthread... " >&6; }
67136709
if test ${ac_cv_lib_pthread_pthread_create+y}
67146710
then :
@@ -6745,18 +6741,94 @@ fi
67456741
printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
67466742
if test "x$ac_cv_lib_pthread_pthread_create" = xyes
67476743
then :
6748-
PTHREAD_LIBS="-lpthreadGC2"
6744+
PTHREAD_LIBS="-lpthread"
6745+
else $as_nop
6746+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreadGC2" >&5
6747+
printf %s "checking for pthread_create in -lpthreadGC2... " >&6; }
6748+
if test ${ac_cv_lib_pthreadGC2_pthread_create+y}
6749+
then :
6750+
printf %s "(cached) " >&6
6751+
else $as_nop
6752+
ac_check_lib_save_LIBS=$LIBS
6753+
LIBS="-lpthreadGC2 $LIBS"
6754+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755+
/* end confdefs.h. */
6756+
6757+
/* Override any GCC internal prototype to avoid an error.
6758+
Use char because int might match the return type of a GCC
6759+
builtin and then its argument prototype would still apply. */
6760+
char pthread_create ();
6761+
int
6762+
main (void)
6763+
{
6764+
return pthread_create ();
6765+
;
6766+
return 0;
6767+
}
6768+
_ACEOF
6769+
if ac_fn_c_try_link "$LINENO"
6770+
then :
6771+
ac_cv_lib_pthreadGC2_pthread_create=yes
6772+
else $as_nop
6773+
ac_cv_lib_pthreadGC2_pthread_create=no
67496774
fi
6775+
rm -f core conftest.err conftest.$ac_objext conftest.beam \
6776+
conftest$ac_exeext conftest.$ac_ext
6777+
LIBS=$ac_check_lib_save_LIBS
6778+
fi
6779+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreadGC2_pthread_create" >&5
6780+
printf "%s\n" "$ac_cv_lib_pthreadGC2_pthread_create" >&6; }
6781+
if test "x$ac_cv_lib_pthreadGC2_pthread_create" = xyes
6782+
then :
6783+
PTHREAD_LIBS="-lpthreadGC2"
6784+
else $as_nop
6785+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreadGC1" >&5
6786+
printf %s "checking for pthread_create in -lpthreadGC1... " >&6; }
6787+
if test ${ac_cv_lib_pthreadGC1_pthread_create+y}
6788+
then :
6789+
printf %s "(cached) " >&6
6790+
else $as_nop
6791+
ac_check_lib_save_LIBS=$LIBS
6792+
LIBS="-lpthreadGC1 $LIBS"
6793+
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794+
/* end confdefs.h. */
67506795
6751-
else
6752-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
6753-
printf %s "checking for pthread_create in -lpthread... " >&6; }
6754-
if test ${ac_cv_lib_pthread_pthread_create+y}
6796+
/* Override any GCC internal prototype to avoid an error.
6797+
Use char because int might match the return type of a GCC
6798+
builtin and then its argument prototype would still apply. */
6799+
char pthread_create ();
6800+
int
6801+
main (void)
6802+
{
6803+
return pthread_create ();
6804+
;
6805+
return 0;
6806+
}
6807+
_ACEOF
6808+
if ac_fn_c_try_link "$LINENO"
6809+
then :
6810+
ac_cv_lib_pthreadGC1_pthread_create=yes
6811+
else $as_nop
6812+
ac_cv_lib_pthreadGC1_pthread_create=no
6813+
fi
6814+
rm -f core conftest.err conftest.$ac_objext conftest.beam \
6815+
conftest$ac_exeext conftest.$ac_ext
6816+
LIBS=$ac_check_lib_save_LIBS
6817+
fi
6818+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreadGC1_pthread_create" >&5
6819+
printf "%s\n" "$ac_cv_lib_pthreadGC1_pthread_create" >&6; }
6820+
if test "x$ac_cv_lib_pthreadGC1_pthread_create" = xyes
6821+
then :
6822+
PTHREAD_LIBS="-lpthreadGC1"
6823+
else $as_nop
6824+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreadGC" >&5
6825+
printf %s "checking for pthread_create in -lpthreadGC... " >&6; }
6826+
if test ${ac_cv_lib_pthreadGC_pthread_create+y}
67556827
then :
67566828
printf %s "(cached) " >&6
67576829
else $as_nop
67586830
ac_check_lib_save_LIBS=$LIBS
6759-
LIBS="-lpthread $LIBS"
6831+
LIBS="-lpthreadGC $LIBS"
67606832
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
67616833
/* end confdefs.h. */
67626834
@@ -6774,24 +6846,30 @@ return pthread_create ();
67746846
_ACEOF
67756847
if ac_fn_c_try_link "$LINENO"
67766848
then :
6777-
ac_cv_lib_pthread_pthread_create=yes
6849+
ac_cv_lib_pthreadGC_pthread_create=yes
67786850
else $as_nop
6779-
ac_cv_lib_pthread_pthread_create=no
6851+
ac_cv_lib_pthreadGC_pthread_create=no
67806852
fi
67816853
rm -f core conftest.err conftest.$ac_objext conftest.beam \
67826854
conftest$ac_exeext conftest.$ac_ext
67836855
LIBS=$ac_check_lib_save_LIBS
67846856
fi
6785-
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
6786-
printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
6787-
if test "x$ac_cv_lib_pthread_pthread_create" = xyes
6857+
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreadGC_pthread_create" >&5
6858+
printf "%s\n" "$ac_cv_lib_pthreadGC_pthread_create" >&6; }
6859+
if test "x$ac_cv_lib_pthreadGC_pthread_create" = xyes
67886860
then :
6789-
PTHREAD_LIBS="-lpthread"
6861+
PTHREAD_LIBS="-lpthreadGC"
6862+
6863+
fi
6864+
67906865
fi
67916866

67926867
fi
67936868

6794-
LDFLAGS="$PTHREAD_LDFLAGS $LDFLAGS"
6869+
fi
6870+
6871+
6872+
#LDFLAGS="$PTHREAD_LDFLAGS $LDFLAGS"
67956873
# PTHREAD_LIBS="$PTHREAD_LIBS"
67966874

67976875
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __uint128_t is supported" >&5
@@ -7508,7 +7586,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
75087586
# report actual input values of CONFIG_FILES etc. instead of their
75097587
# values after options handling.
75107588
ac_log="
7511-
This file was extended by cpuminer-opt $as_me 24.6, which was
7589+
This file was extended by cpuminer-opt $as_me 24.7, which was
75127590
generated by GNU Autoconf 2.71. Invocation command line was
75137591
75147592
CONFIG_FILES = $CONFIG_FILES
@@ -7576,7 +7654,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
75767654
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
75777655
ac_cs_config='$ac_cs_config_escaped'
75787656
ac_cs_version="\\
7579-
cpuminer-opt config.status 24.6
7657+
cpuminer-opt config.status 24.7
75807658
configured by $0, generated by GNU Autoconf 2.71,
75817659
with options \\"\$ac_cs_config\\"
75827660

configure.ac

+26-29
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AC_INIT([cpuminer-opt], [24.6])
1+
AC_INIT([cpuminer-opt], [24.7])
22

33
AC_PREREQ([2.59c])
44
AC_CANONICAL_SYSTEM
@@ -41,34 +41,33 @@ AC_CHECK_DECLS([be32dec, le32dec, be32enc, le32enc, le16dec, le16enc], [], [],
4141
AC_FUNC_ALLOCA
4242
AC_CHECK_FUNCS([getopt_long])
4343

44-
MINGW_TARGET=`$CC -dumpmachine 2>&1`
45-
case $MINGW_TARGET in
46-
arm*-*-*)
47-
have_arm=true
48-
;;
49-
i*86-*-mingw*)
50-
have_x86=true
51-
have_win32=true
52-
CFLAGS="-Icompat/pthreads $CFLAGS"
53-
PTHREAD_LDFLAGS="-Lcompat/pthreads/x86"
54-
WS2_LIBS="-lws2_32"
55-
;;
56-
x86_64-*-mingw*|amd64-*-mingw*)
57-
have_x86_64=true
58-
have_win32=true
59-
CFLAGS="-Icompat/pthreads $CFLAGS"
60-
PTHREAD_LDFLAGS="-Lcompat/pthreads/x64"
61-
# SHOULD BE AT END! after -lcrypto #
62-
WS2_LIBS="-L/mingw/x86_64-w64-mingw32/lib -lws2_32"
63-
;;
44+
case $target in
6445
i*86-*-*)
6546
have_x86=true
6647
;;
6748
x86_64-*-*|amd64-*-*)
6849
have_x86_64=true
6950
;;
51+
arm*-*-*)
52+
have_arm=true
53+
;;
54+
powerpc*-*-*)
55+
have_ppc=true
56+
;;
7057
esac
7158

59+
PTHREAD_FLAGS="-pthread"
60+
WS2_LIBS=""
61+
62+
case $target in
63+
*-*-mingw*)
64+
have_win32=true
65+
PTHREAD_FLAGS=""
66+
WS2_LIBS="-lws2_32"
67+
;;
68+
esac
69+
70+
7271
AC_ARG_ENABLE([assembly],
7372
AS_HELP_STRING([--disable-assembly], [disable assembly-language routines]))
7473
if test x$enable_assembly != xno; then
@@ -113,15 +112,13 @@ fi
113112

114113
AC_CHECK_LIB(jansson, json_loads, request_jansson=false, request_jansson=true)
115114

116-
# GC2 for GNU static
117-
if test "x$have_win32" = "xtrue" ; then
118-
# MinGW
119-
AC_CHECK_LIB([pthread], [pthread_create], PTHREAD_LIBS="-lpthreadGC2",[])
120-
else
121-
AC_CHECK_LIB([pthread], [pthread_create], PTHREAD_LIBS="-lpthread",[])
122-
fi
115+
AC_CHECK_LIB([pthread], [pthread_create], PTHREAD_LIBS="-lpthread",
116+
AC_CHECK_LIB([pthreadGC2], [pthread_create], PTHREAD_LIBS="-lpthreadGC2",
117+
AC_CHECK_LIB([pthreadGC1], [pthread_create], PTHREAD_LIBS="-lpthreadGC1",
118+
AC_CHECK_LIB([pthreadGC], [pthread_create], PTHREAD_LIBS="-lpthreadGC"
119+
))))
123120

124-
LDFLAGS="$PTHREAD_LDFLAGS $LDFLAGS"
121+
#LDFLAGS="$PTHREAD_LDFLAGS $LDFLAGS"
125122
# PTHREAD_LIBS="$PTHREAD_LIBS"
126123

127124
AC_MSG_CHECKING(whether __uint128_t is supported)

0 commit comments

Comments
 (0)