Browse Source

openssl: add missing configuration pieces for MIPS

v0.10.11-release
Andrei Sedoi 12 years ago
committed by Ben Noordhuis
parent
commit
884b25356f
  1. 2
      configure
  2. 6
      deps/openssl/config/opensslconf.h

2
configure

@ -381,6 +381,7 @@ def host_arch_cc():
'__x86_64__' : 'x64',
'__i386__' : 'ia32',
'__arm__' : 'arm',
'__mips__' : 'mips',
}
rtn = 'ia32' # default
@ -402,6 +403,7 @@ def host_arch_win():
'AMD64' : 'x64',
'x86' : 'ia32',
'arm' : 'arm',
'mips' : 'mips',
}
return matchup.get(arch, 'ia32')

6
deps/openssl/config/opensslconf.h

@ -179,7 +179,7 @@
* - elder Alpha because it lacks byte load/store instructions;
*/
# undef RC4_INT
# if defined(__arm__)
# if defined(__arm__) || defined(__mips__)
# define RC4_INT unsigned char
# else
# define RC4_INT unsigned int
@ -194,7 +194,7 @@
# define RC4_CHUNK unsigned long long
# elif (defined(_M_X64) || defined(__x86_64__)) && !defined(_WIN32)
# define RC4_CHUNK unsigned long
# elif defined(__arm__)
# elif defined(__arm__) || defined(__mips__)
# define RC4_CHUNK unsigned long
# else
/* On x86 RC4_CHUNK is not defined */
@ -253,7 +253,7 @@
#if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
# define CONFIG_HEADER_BF_LOCL_H
# undef BF_PTR
# if defined(__arm__)
# if defined(__arm__) || defined(__mips__)
# define BF_PTR
# endif
#endif /* HEADER_BF_LOCL_H */

Loading…
Cancel
Save