Commit 46d4d865 authored by Andy Polyakov's avatar Andy Polyakov
Browse files

Configure: restore original logic for -DWHIRLPOOL_ASM.

parent 8ab31975
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -1052,11 +1052,13 @@ if (!$no_asm) {
	$config{cflags}.=" -DVPAES_ASM" if ($target{aes_obj} =~ m/vpaes/);
	$config{cflags}.=" -DBSAES_ASM" if ($target{aes_obj} =~ m/bsaes/);
    }
    if ($target{wp_obj} =~ /mmx/ && $config{processor} eq "386") {
    if ($target{wp_obj} =~ /mmx/) {
        if ($config{processor} eq "386") {
	    $target{wp_obj}=$table{BASE}->{wp_obj};
	} elsif (!$disabled{"whirlpool"}) {
	    $config{cflags}.=" -DWHIRLPOOL_ASM";
	}
    }
    if ($target{modes_obj} =~ /ghash-/) {
	$config{cflags}.=" -DGHASH_ASM";
    }