llvm/arm-config.guess.patch

24 lines
678 B
Diff

Index: llvm-3.3/autoconf/config.guess
===================================================================
--- llvm-3.3.orig/autoconf/config.guess
+++ llvm-3.3/autoconf/config.guess
@@ -885,13 +885,11 @@ EOF
then
echo ${UNAME_MACHINE}-unknown-linux-gnu
else
- if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
- | grep -q __ARM_PCS_VFP
- then
- echo ${UNAME_MACHINE}-unknown-linux-gnueabi
- else
- echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
- fi
+ if uname -a | grep -q "armv7"; then
+ echo armv7hl-suse-linux-gnueabi
+ else
+ echo armv5tel-suse-linux-gnueabi
+ fi
fi
exit ;;
avr32*:Linux:*:*)