commit fd3496d3ef1b3f27c670c25278cbb0304f74a706 from: David du Colombier <0intro@gmail.com> date: Mon Oct 20 20:21:43 2014 UTC 9l: link with -lresolv on Linux LGTM=rsc R=rsc https://codereview.appspot.com/136520044 commit - 738e890b19eb560e557197aa59598a5e08983a28 commit + fd3496d3ef1b3f27c670c25278cbb0304f74a706 blob - d07bd89292a5643d61d30f584c3c59ac99f6ed4f blob + 0b57319d6e66e21ffd42ec56c8127f76b82c84e9 --- bin/9l +++ bin/9l @@ -38,7 +38,7 @@ case "$tag" in *Linux*) ld=${CC9:-gcc} userpath=true - extralibs="$extralibs -lutil" + extralibs="$extralibs -lutil -lresolv" case "${SYSVERSION:-`uname -r`}" in 2.6.* | 3.*) extralibs="$extralibs -lpthread" blob - f7587ad9669008fc521a66d84211ddfa4e09a181 blob + b9661be1c22845ce90336351a1e597afc6a674ea --- src/libndb/sysdnsquery.c +++ src/libndb/sysdnsquery.c @@ -8,8 +8,6 @@ #include #include #include "ndbhf.h" - -AUTOLIB(resolv) static void nstrcpy(char*, char*, int); static void mkptrname(char*, char*, int);