0013-configure-add-crossarch-option.patch 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. From 549342fa380ed2a9ad41be3d04ee2f0585f6a465 Mon Sep 17 00:00:00 2001
  2. From: Michael Lauer <mickey@vanille-media.de>
  3. Date: Wed, 26 Sep 2012 20:41:32 +0200
  4. Subject: [PATCH 13/21] configure: add "-crossarch" option
  5. Upstream-Status: Pending
  6. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
  7. Update for qt 4.8.7
  8. Signed-off-by: Kai Kang <kai.kang@windriver.com>
  9. ---
  10. configure | 7 ++++++-
  11. 1 file changed, 6 insertions(+), 1 deletion(-)
  12. diff --git a/configure b/configure
  13. index 4eb4a3d..a4dacec 100755
  14. --- a/configure
  15. +++ b/configure
  16. @@ -1160,7 +1160,7 @@ while [ "$#" -gt 0 ]; do
  17. shift
  18. VAL=$1
  19. ;;
  20. - -prefix|-docdir|-headerdir|-plugindir|-importdir|-datadir|-libdir|-bindir|-translationdir|-sysconfdir|-examplesdir|-demosdir|-depths|-make|-nomake|-platform|-xplatform|-device-option|-buildkey|-sdk|-arch|-host-arch|-mysql_config|-psql_config|-sysroot)
  21. + -prefix|-docdir|-headerdir|-plugindir|-importdir|-datadir|-libdir|-bindir|-translationdir|-sysconfdir|-examplesdir|-demosdir|-depths|-make|-nomake|-platform|-xplatform|-device-option|-buildkey|-sdk|-arch|-host-arch|-mysql_config|-psql_config|-sysroot|-crossarch)
  22. VAR=`echo $1 | sed "s,^-\(.*\),\1,"`
  23. shift
  24. VAL="$1"
  25. @@ -1719,6 +1719,9 @@ while [ "$#" -gt 0 ]; do
  26. DEV_VAL=`echo $VAL | sed "s,^.*=\(.*\),\1,"`
  27. DeviceVar set $DEV_VAR $DEV_VAL
  28. ;;
  29. + crossarch)
  30. + CROSSARCH="$VAL"
  31. + ;;
  32. debug-and-release)
  33. if [ "$VAL" = "yes" ] || [ "$VAL" = "no" ]; then
  34. CFG_DEBUG_RELEASE="$VAL"
  35. @@ -3333,6 +3336,8 @@ arm*)
  36. ;;
  37. esac
  38. +CFG_ARCH="$CROSSARCH"
  39. +
  40. if [ -d "$relpath/src/corelib/arch/$CFG_ARCH" ]; then
  41. if [ "$OPT_VERBOSE" = "yes" ]; then
  42. echo " '$CFG_ARCH' is supported"
  43. --
  44. 1.8.0