scripts/trylink: libbusybox fix
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 20 Jun 2016 10:23:35 +0000 (12:23 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 20 Jun 2016 10:23:35 +0000 (12:23 +0200)
gcc 6.1.1 can emit empty line with spaces

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
scripts/trylink

index 129570a60e021c2bfdba24508572616ba504d961..145df9959091637935a88817132a6f95094a13a2 100755 (executable)
@@ -293,7 +293,7 @@ if test "$CONFIG_FEATURE_INDIVIDUAL" = y; then
     echo "Linking individual applets against libbusybox (see $sharedlib_dir/*)"
     gcc -DNAME_MAIN -E -include include/autoconf.h include/applets.h \
     | grep -v "^#" \
-    | grep -v "^$" \
+    | grep -v "^ *$" \
     > applet_lst.tmp
     while read name main junk; do