summary refs log tree commit diff
path: root/tools/gen-deps.sh
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-10-21 17:22:24 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-10-21 17:22:24 +0000
commitdd4d6ee1ff81c3bd6cde50c7a0747f17970dd71c (patch)
tree5bac15c6c72f8eb3cc75fe51a1be7850f711a306 /tools/gen-deps.sh
parenteee3814fb15bfa0e23c49ff50ea9b3906896af0c (diff)
downloads6-linux-utils-dd4d6ee1ff81c3bd6cde50c7a0747f17970dd71c.tar.gz
s6-linux-utils-dd4d6ee1ff81c3bd6cde50c7a0747f17970dd71c.tar.xz
s6-linux-utils-dd4d6ee1ff81c3bd6cde50c7a0747f17970dd71c.zip
Fix gen-deps.sh for cross-builds
Diffstat (limited to 'tools/gen-deps.sh')
-rwxr-xr-xtools/gen-deps.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gen-deps.sh b/tools/gen-deps.sh
index 6383ac2..27e5b3e 100755
--- a/tools/gen-deps.sh
+++ b/tools/gen-deps.sh
@@ -81,7 +81,7 @@ for dir in $(ls -1 src | grep -v ^include) ; do
       if echo $dep | grep -q -- \\.o$ ; then
         dep="src/$dir/$dep"
       fi
-      if echo $dep | grep -q -- '^\${.*_LIB}' ; then
+      if echo $dep | grep -q -e ^-l -e '^\${.*_LIB}' ; then
         libs="$libs $dep"
       else
         deps="$deps $dep"