cross-compile.patch 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. To support the cross-compile
  2. Upstream-Status: Pending
  3. make the configure to support the cross-compile, by only to compile the
  4. target, and not to run it
  5. Roy Li <rongqing.li@windriver.com>
  6. Index: netkit-telnet-0.17/configure
  7. ===================================================================
  8. --- netkit-telnet-0.17.orig/configure 2008-11-23 22:01:26.000000000 +0100
  9. +++ netkit-telnet-0.17/configure 2008-11-23 22:05:00.000000000 +0100
  10. @@ -94,7 +94,7 @@
  11. echo -n 'Checking if C compiler works... '
  12. if (
  13. $CC __conftest.c -o __conftest || exit 1
  14. - ./__conftest || exit 1
  15. + # Idiots belong shot! ./__conftest || exit 1
  16. ) >/dev/null 2>&1; then
  17. echo 'yes'
  18. else
  19. @@ -141,7 +141,7 @@
  20. echo -n 'Checking if C++ compiler works... '
  21. if (
  22. $CXX __conftest.cc -o __conftest || exit 1
  23. - ./__conftest || exit 1
  24. + # Iditios belong shot! ./__conftest || exit 1
  25. ) >/dev/null 2>&1; then
  26. echo 'yes'
  27. else
  28. @@ -284,7 +284,7 @@
  29. else
  30. if (
  31. $CXX $CXXFLAGS -D__USE_BSD_SIGNAL __conftest.cc -o __conftest || exit 1
  32. - ./__conftest || exit 1
  33. + # running still does not work./__conftest || exit 1
  34. ) >/dev/null 2>&1; then
  35. echo '-D__USE_BSD_SIGNAL'
  36. CFLAGS="$CFLAGS -D__USE_BSD_SIGNAL"
  37. @@ -501,7 +501,7 @@
  38. EOF
  39. if (
  40. $CXX $CXXFLAGS __conftest.cc $LIBBSD -o __conftest || exit 1
  41. - ./__conftest || exit 1
  42. + # argh! morons!./__conftest || exit 1
  43. ) >/dev/null 2>&1; then
  44. echo 'ok'
  45. else