Skip to content

Commit

Permalink
tuning compiler flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Karel Miko committed Jan 16, 2014
1 parent 1232232 commit a5206ef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Build.PL
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ use Module::Build;
use Config;

my $flags = '-Isrc/ltc/headers -Isrc/ltm -DLTC_SOURCE -DLTC_NO_TEST -DLTC_NO_PROTOTYPES -DLTM_DESC';
#$flags .= ' -DLTC_NO_ASM';
#$flags .= ' -Wall';

unless ($ENV{CRYPTX_USE_ASM} || $Config{archname} =~ /MSWin32-x86/) {
$flags .= ' -DLTC_NO_ASM';
if (!$ENV{CRYPTX_USE_ASM} && $Config{archname} =~ /(x86_64-cygwin|MSWin32-x64)/) {
# $flags .= ' -DLTC_NO_ASM';
}

my $class = Module::Build->subclass(
Expand Down
2 changes: 1 addition & 1 deletion src/ltc/headers/tomcrypt_custom.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@
/* #define LTC_MECC_FP */

/* Timing Resistant? */
/* #define LTC_ECC_TIMING_RESISTANT */
#define LTC_ECC_TIMING_RESISTANT

#endif /* LTC_NO_PK */

Expand Down

0 comments on commit a5206ef

Please sign in to comment.