You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
762 B

  1. --- a/makedefs
  2. +++ b/makedefs
  3. @@ -190,9 +190,9 @@ error() {
  4. case $# in
  5. # Officially supported usage.
  6. - 0) SYSTEM=`(uname -s) 2>/dev/null`
  7. - RELEASE=`(uname -r) 2>/dev/null`
  8. - VERSION=`(uname -v) 2>/dev/null`
  9. + 0) SYSTEM="Linux"
  10. + RELEASE="3.10.18"
  11. + VERSION="OpenWRT"
  12. case "$VERSION" in
  13. dcosx*) SYSTEM=$VERSION;;
  14. esac;;
  15. @@ -522,9 +522,9 @@ EOF
  16. esac
  17. for name in nsl resolv
  18. do
  19. - for lib in /usr/lib64 /lib64 /usr/lib /usr/lib/* /lib /lib/*
  20. + for lib in /usr/lib64 /usr/lib64/* /usr/lib /usr/lib/* /lib /lib/*
  21. do
  22. - test -e $lib/lib$name.a -o -e $lib/lib$name.so && {
  23. + test -e $STAGING_DIR/$lib/lib$name.a -o -e $STAGING_DIR/$lib/lib$name.so && {
  24. SYSLIBS="$SYSLIBS -l$name"
  25. break
  26. }