@@ -367,8 +367,8 @@ if test x"$use_ecmult_static_precomputation" != x"no"; then
367
367
fi
368
368
# If we're not cross-compiling, simply use the same compiler for building the static precompation code.
369
369
CC_FOR_BUILD="$CC"
370
- SECP_CFLAGS_FOR_BUILD="$SECP_CFLAGS"
371
370
CPPFLAGS_FOR_BUILD="$CPPFLAGS"
371
+ SECP_CFLAGS_FOR_BUILD="$SECP_CFLAGS"
372
372
CFLAGS_FOR_BUILD="$CFLAGS"
373
373
LDFLAGS_FOR_BUILD="$LDFLAGS"
374
374
else
@@ -379,10 +379,10 @@ if test x"$use_ecmult_static_precomputation" != x"no"; then
379
379
cross_compiling=no
380
380
SAVE_CC="$CC"
381
381
CC="$CC_FOR_BUILD"
382
- SAVE_CFLAGS="$CFLAGS"
383
- CFLAGS="$CFLAGS_FOR_BUILD"
384
382
SAVE_CPPFLAGS="$CPPFLAGS"
385
383
CPPFLAGS="$CPPFLAGS_FOR_BUILD"
384
+ SAVE_CFLAGS="$CFLAGS"
385
+ CFLAGS="$CFLAGS_FOR_BUILD"
386
386
SAVE_LDFLAGS="$LDFLAGS"
387
387
LDFLAGS="$LDFLAGS_FOR_BUILD"
388
388
@@ -397,14 +397,14 @@ if test x"$use_ecmult_static_precomputation" != x"no"; then
397
397
# Restore the environment
398
398
cross_compiling=$save_cross_compiling
399
399
CC="$SAVE_CC"
400
- CFLAGS="$SAVE_CFLAGS"
401
400
CPPFLAGS="$SAVE_CPPFLAGS"
401
+ CFLAGS="$SAVE_CFLAGS"
402
402
LDFLAGS="$SAVE_LDFLAGS"
403
403
404
404
if test x"$working_native_cc" = x"no"; then
405
405
AC_MSG_RESULT ( [ no] )
406
406
set_precomp=no
407
- m4_define ( [ please_set_for_build] , [ Please set CC_FOR_BUILD, CFLAGS_FOR_BUILD, CPPFLAGS_FOR_BUILD , and/or LDFLAGS_FOR_BUILD.] )
407
+ m4_define ( [ please_set_for_build] , [ Please set CC_FOR_BUILD, CPPFLAGS_FOR_BUILD, CFLAGS_FOR_BUILD , and/or LDFLAGS_FOR_BUILD.] )
408
408
if test x"$use_ecmult_static_precomputation" = x"yes"; then
409
409
AC_MSG_ERROR ( [ native compiler ${CC_FOR_BUILD} does not produce working binaries. please_set_for_build] )
410
410
else
@@ -417,9 +417,9 @@ if test x"$use_ecmult_static_precomputation" != x"no"; then
417
417
fi
418
418
419
419
AC_SUBST ( CC_FOR_BUILD )
420
+ AC_SUBST ( CPPFLAGS_FOR_BUILD )
420
421
AC_SUBST ( SECP_CFLAGS_FOR_BUILD )
421
422
AC_SUBST ( CFLAGS_FOR_BUILD )
422
- AC_SUBST ( CPPFLAGS_FOR_BUILD )
423
423
AC_SUBST ( LDFLAGS_FOR_BUILD )
424
424
else
425
425
set_precomp=no
532
532
echo
533
533
echo " valgrind = $enable_valgrind"
534
534
echo " CC = $CC"
535
+ echo " CPPFLAGS = $CPPFLAGS"
535
536
echo " SECP_CFLAGS = $SECP_CFLAGS"
536
537
echo " CFLAGS = $CFLAGS"
537
- echo " CPPFLAGS = $CPPFLAGS"
538
538
echo " LDFLAGS = $LDFLAGS"
539
539
echo
540
540
if test x"$set_precomp" = x"yes"; then
541
541
echo " CC_FOR_BUILD = $CC_FOR_BUILD"
542
+ echo " CPPFLAGS_FOR_BUILD = $CPPFLAGS_FOR_BUILD"
542
543
echo " SECP_CFLAGS_FOR_BUILD = $SECP_CFLAGS_FOR_BUILD"
543
544
echo " CFLAGS_FOR_BUILD = $CFLAGS_FOR_BUILD"
544
- echo " CPPFLAGS_FOR_BUILD = $CPPFLAGS_FOR_BUILD"
545
545
echo " LDFLAGS_FOR_BUILD = $LDFLAGS_FOR_BUILD"
546
546
fi
0 commit comments