X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=config;h=4e7fd104309d9a61686d402c4e585b885ea9e988;hp=b8a787cc5377f9dfad21a278b46aee5f69776fe5;hb=6f68a52ebf39ad854e277cd6d7bae3cb32ab7049;hpb=2df7f11fad886cf54c98a17e95932d9b5987f488 diff --git a/config b/config index b8a787cc53..4e7fd10430 100755 --- a/config +++ b/config @@ -640,7 +640,14 @@ case "$GUESSOS" in else OUT="linux-x86_64" fi ;; - *86-*-linux2) OUT="linux-elf" ;; + *86-*-linux2) + # On machines where the compiler understands -m32, prefer a + # config target that uses it + if $CC -m32 -E -x c /dev/null > /dev/null 2>&1; then + OUT="linux-x86" + else + OUT="linux-elf" + fi ;; *86-*-linux1) OUT="linux-aout" ;; *-*-linux?) OUT="linux-generic32" ;; sun4[uv]*-*-solaris2)