1
0

patch-configure 940 B

123456789101112131415161718192021222324252627282930
  1. use the compiler passed in $CC
  2. --- iproute2-2.6.29-1.orig/configure 2009-03-24 23:40:54.000000000 +0100
  3. +++ iproute2-2.6.29-1/configure 2009-08-22 02:23:52.642364236 +0200
  4. @@ -16,7 +16,7 @@ int main(int argc, char **argv) {
  5. return 0;
  6. }
  7. EOF
  8. -gcc -I$INCLUDE -o /tmp/atmtest /tmp/atmtest.c -latm >/dev/null 2>&1
  9. +$CC -I$INCLUDE -o /tmp/atmtest /tmp/atmtest.c -latm >/dev/null 2>&1
  10. if [ $? -eq 0 ]
  11. then
  12. echo "TC_CONFIG_ATM:=y" >>Config
  13. @@ -49,7 +49,7 @@ int main(int argc, char **argv) {
  14. }
  15. EOF
  16. -gcc -I$INCLUDE $IPTC -o /tmp/ipttest /tmp/ipttest.c $IPTL -ldl >/dev/null 2>&1
  17. +$CC -I$INCLUDE $IPTC -o /tmp/ipttest /tmp/ipttest.c $IPTL -ldl >/dev/null 2>&1
  18. if [ $? -eq 0 ]
  19. then
  20. @@ -81,7 +81,7 @@ int main(int argc, char **argv) {
  21. }
  22. EOF
  23. -gcc -I$INCLUDE $IPTC -o /tmp/ipttest /tmp/ipttest.c $IPTL -ldl >/dev/null 2>&1
  24. +$CC -I$INCLUDE $IPTC -o /tmp/ipttest /tmp/ipttest.c $IPTL -ldl >/dev/null 2>&1
  25. if [ $? -eq 0 ]
  26. then