Skip to content

Commit 04754b0

Browse files
committed
Support multiarch build in tests.
1 parent 891ca9e commit 04754b0

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

Modules/_decimal/tests/runall-memorydebugger.sh

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
# Requirements: valgrind
1010
#
1111

12-
# Set additional CFLAGS for ./configure
12+
# Set additional CFLAGS and LDFLAGS for ./configure
1313
ADD_CFLAGS=
14+
ADD_LDFLAGS=
1415

1516

1617
CONFIGS_64="x64 uint128 ansi64 universal"
@@ -74,7 +75,7 @@ for args in "--without-threads" ""; do
7475

7576
cd ../../
7677
$GMAKE distclean > /dev/null 2>&1
77-
./configure CFLAGS="$ADD_CFLAGS" --with-pydebug $args > /dev/null 2>&1
78+
./configure CFLAGS="$ADD_CFLAGS" LDFLAGS="$ADD_LDFLAGS" --with-pydebug $args > /dev/null 2>&1
7879
$GMAKE | grep _decimal
7980

8081
printf "\n\n# ======================== refleak tests ===========================\n\n"
@@ -86,7 +87,7 @@ for args in "--without-threads" ""; do
8687
printf "\nbuilding python ...\n\n"
8788

8889
$GMAKE distclean > /dev/null 2>&1
89-
./configure CFLAGS="$ADD_CFLAGS" $args > /dev/null 2>&1
90+
./configure CFLAGS="$ADD_CFLAGS" LDFLAGS="$ADD_LDFLAGS" $args > /dev/null 2>&1
9091
$GMAKE | grep _decimal
9192

9293
printf "\n\n# ======================== regular tests ===========================\n\n"
@@ -106,7 +107,7 @@ for args in "--without-threads" ""; do
106107
print_config "valgrind tests: config=$config" $args
107108
printf "\nbuilding python ...\n\n"
108109
$GMAKE distclean > /dev/null 2>&1
109-
./configure CFLAGS="$ADD_CFLAGS" --without-pymalloc $args > /dev/null 2>&1
110+
./configure CFLAGS="$ADD_CFLAGS" LDFLAGS="$ADD_LDFLAGS" --without-pymalloc $args > /dev/null 2>&1
110111
$GMAKE | grep _decimal
111112

112113
printf "\n\n# ======================== valgrind tests ===========================\n\n"
@@ -132,7 +133,7 @@ for config in $CONFIGS; do
132133
printf "\nbuilding python ...\n\n"
133134

134135
$GMAKE distclean > /dev/null 2>&1
135-
./configure CFLAGS="$ADD_CFLAGS" --with-pydebug $args > /dev/null 2>&1
136+
./configure CFLAGS="$ADD_CFLAGS" LDFLAGS="$ADD_LDFLAGS" --with-pydebug $args > /dev/null 2>&1
136137
$GMAKE | grep _decimal
137138

138139
printf "\n\n# ========================== debug ===========================\n\n"
@@ -143,7 +144,7 @@ for config in $CONFIGS; do
143144
printf "\nbuilding python ...\n\n"
144145

145146
$GMAKE distclean > /dev/null 2>&1
146-
./configure CFLAGS="$ADD_CFLAGS" $args > /dev/null 2>&1
147+
./configure CFLAGS="$ADD_CFLAGS" LDFLAGS="$ADD_LDFLAGS" $args > /dev/null 2>&1
147148
$GMAKE | grep _decimal
148149

149150
printf "\n\n# ======================== regular ===========================\n\n"
@@ -163,7 +164,7 @@ for config in $CONFIGS; do
163164
printf "\nbuilding python ...\n\n"
164165

165166
$GMAKE distclean > /dev/null 2>&1
166-
./configure CFLAGS="$ADD_CFLAGS" --without-pymalloc $args > /dev/null 2>&1
167+
./configure CFLAGS="$ADD_CFLAGS" LDFLAGS="$ADD_LDFLAGS" --without-pymalloc $args > /dev/null 2>&1
167168
$GMAKE | grep _decimal
168169

169170
printf "\n\n# ======================== valgrind ==========================\n\n"

0 commit comments

Comments
 (0)