diff --git a/make-config.sh b/make-config.sh index 60f9fc0..00da0ef 100644 --- a/make-config.sh +++ b/make-config.sh @@ -583,12 +583,6 @@ elif [ "$sbcl_arch" = "mips" ]; then printf ' :stack-allocatable-closures :stack-allocatable-vectors' >> $ltf printf ' :stack-allocatable-lists :stack-allocatable-fixed-objects' >> $ltf printf ' :alien-callbacks' >> $ltf - # Use a little C program to try to guess the endianness. Ware - # cross-compilers! - # - # FIXME: integrate to grovel-features, mayhaps - $GNUMAKE -C tools-for-build determine-endianness -I ../src/runtime - tools-for-build/determine-endianness >> $ltf elif [ "$sbcl_arch" = "ppc" ]; then printf ' :gencgc :stack-allocatable-closures :stack-allocatable-lists' >> $ltf printf ' :linkage-table :raw-instance-init-vops :memory-barrier-vops' >> $ltf @@ -635,6 +629,13 @@ else echo > /dev/null fi +# Use a little C program to try to guess the endianness. Ware +# cross-compilers! +# +# FIXME: integrate to grovel-features, mayhaps +$GNUMAKE -C tools-for-build determine-endianness -I ../src/runtime +tools-for-build/determine-endianness >> $ltf + export sbcl_os sbcl_arch sh tools-for-build/grovel-features.sh >> $ltf diff --git a/tools-for-build/determine-endianness.c b/tools-for-build/determine-endianness.c index b59d2ed..8c502f5 100644 --- a/tools-for-build/determine-endianness.c +++ b/tools-for-build/determine-endianness.c @@ -25,7 +25,7 @@ int main (int argc, char *argv[]) { char *bar = (char *) &foo; switch(*bar) { case ' ': - /* Do nothing */ + printf(" :big-endian"); break; case '#': printf(" :little-endian");