diff options
author | Richard Levitte <levitte@openssl.org> | 2000-11-01 00:14:19 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-11-01 00:14:19 +0100 |
commit | 815c83f70aadf7d1526c70cdc8cdec574fa93a9e (patch) | |
tree | 06895ebe1eed4f1f4e9c5553d4dec38522bfc9d2 /config | |
parent | Make flag variables int instead of char. This avoids getting into trouble on... (diff) | |
download | openssl-815c83f70aadf7d1526c70cdc8cdec574fa93a9e.tar.xz openssl-815c83f70aadf7d1526c70cdc8cdec574fa93a9e.zip |
Add configuration option to build on Linux on both big-endian and
little-endian MIPS.
Submitted by Ralf Baechle <ralf@uni-koblenz.de>
Diffstat (limited to 'config')
-rwxr-xr-x | config | 17 |
1 files changed, 16 insertions, 1 deletions
@@ -413,7 +413,22 @@ case "$GUESSOS" in esac fi ;; - mips-*-linux?) OUT="linux-mips" ;; + mips-*-linux?) + cat >dummy.c <<EOF +#include <stdio.h> /* for printf() prototype */ + int main (argc, argv) int argc; char *argv[]; { +#ifdef __MIPSEB__ + printf ("linux-%s\n", argv[1]); +#endif +#ifdef __MIPSEL__ + printf ("linux-%sel\n", argv[1]); +#endif + return 0; +} +EOF + ${CC} -o dummy dummy.c && OUT=`./dummy ${MACHINE}` + rm dummy dummy.c + ;; ppc-*-linux2) OUT="linux-ppc" ;; m68k-*-linux*) OUT="linux-m68k" ;; ia64-*-linux?) OUT="linux-ia64" ;; |