trylink: on failure, print a hint about CONFIG_EXTRA_LDLIBS
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 3 Apr 2016 13:38:53 +0000 (15:38 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 3 Apr 2016 13:38:53 +0000 (15:38 +0200)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
scripts/trylink

index 3c431edc36b9da4fa755292c6698afbd09a7748d..15435f009c5b0d5b396d3fb1618bb75db5fcba73 100755 (executable)
@@ -140,6 +140,8 @@ try $CC $CFLAGS $LDFLAGS \
 || {
     echo "Failed: $l_list"
     cat $EXE.out
+    echo 'Note: if build needs additional libraries, put them in CONFIG_EXTRA_LDLIBS.'
+    echo 'Example: CONFIG_EXTRA_LDLIBS="pthread dl tirpc audit pam"'
     exit 1
 }