vmm: refactor userspace's emsr_fakewrite()
[akaros.git] / tools / apps / busybox / akaros-patches / 1.17.3 / 0008-link-with-iplib.patch
1 diff -rup busybox-1.17.3/scripts/trylink busybox-1.17.3-akaros/scripts/trylink
2 --- busybox-1.17.3/scripts/trylink      2010-09-16 19:05:35.000000000 -0400
3 +++ busybox-1.17.3-akaros/scripts/trylink       2016-07-07 12:32:10.685108978 -0400
4 @@ -170,6 +170,17 @@ while test "$LDLIBS"; do
5      fi
6  done
7  
8 +# Force iplib to be linked, since you can technically build without it (and get
9 +# stub warnings).  Careful here.  We can't have any extra spaces in LDLIBS.
10 +# Something like " iplib" or "iplib " will flip out.  Only have spaces between
11 +# libraries.
12 +if [[ ! -z $LDLIBS ]]
13 +then
14 +       LDLIBS="${LDLIBS} iplib"
15 +else
16 +       LDLIBS="iplib"
17 +fi
18 +
19  # Make the binary with final, minimal list of libs
20  echo "Final link with: ${LDLIBS:-<none>}"
21  l_list=`echo "$LDLIBS" | sed -e 's/ / -l/g' -e 's/^/-l/' -e 's/^-l$//'`