lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

020-host-libc-dir-moved-debian+derivatives.patch (1090B)


      1 --- a/hints/linux.sh
      2 +++ b/hints/linux.sh
      3 @@ -221,6 +221,24 @@ case "$libc" in
      4      ;;
      5  esac
      6  
      7 +# Ubuntu 11.04 (and later, presumably) doesn't keep most libraries
      8 +# (such as -lm) in /lib or /usr/lib.  So we have to ask gcc to tell us
      9 +# where to look.  We don't want gcc's own libraries, however, so we
     10 +# filter those out.
     11 +# This could be conditional on Unbuntu, but other distributions may
     12 +# follow suit, and this scheme seems to work even on rather old gcc's.
     13 +# This unconditionally uses gcc because even if the user is using another
     14 +# compiler, we still need to find the math library and friends, and I don't
     15 +# know how other compilers will cope with that situation.
     16 +# Still, as an escape hatch, allow Configure command line overrides to
     17 +# plibpth to bypass this check.
     18 +case "$plibpth" in
     19 +'') plibpth=`gcc -print-search-dirs | grep libraries |
     20 +	cut -f2- -d= | tr ':' $trnl | grep -v 'gcc'`
     21 +    plibpth="$plibpth"  # Collapse all entries on one line
     22 +    ;;
     23 +esac
     24 +
     25  # Are we using ELF?  Thanks to Kenneth Albanowski <kjahds@kjahds.com>
     26  # for this test.
     27  cat >try.c <<'EOM'