about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2019-10-21 17:22:31 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2019-10-21 17:22:31 +0000
commit81fc5553d1f2add89db1a4c14dc08325c86049cb (patch)
tree19ee9918995d0ae0ba821726833ac9428bf57f79
parentd4317979e0c64abf9b51744084913d0d88a5b128 (diff)
downloads6-portable-utils-81fc5553d1f2add89db1a4c14dc08325c86049cb.tar.gz
s6-portable-utils-81fc5553d1f2add89db1a4c14dc08325c86049cb.tar.xz
s6-portable-utils-81fc5553d1f2add89db1a4c14dc08325c86049cb.zip
Fix gen-deps.sh for cross-builds
-rw-r--r--package/deps.mak160
-rwxr-xr-xtools/gen-deps.sh2
2 files changed, 81 insertions, 81 deletions
diff --git a/package/deps.mak b/package/deps.mak
index 7aeacd5..da2b80a 100644
--- a/package/deps.mak
+++ b/package/deps.mak
@@ -46,89 +46,89 @@ src/skaembutils/s6-unquote.o src/skaembutils/s6-unquote.lo: src/skaembutils/s6-u
 src/skaembutils/s6-update-symlinks.o src/skaembutils/s6-update-symlinks.lo: src/skaembutils/s6-update-symlinks.c
 src/skaembutils/seekablepipe.o src/skaembutils/seekablepipe.lo: src/skaembutils/seekablepipe.c
 
-s6-basename: EXTRA_LIBS :=
-s6-basename: src/skaembutils/s6-basename.o -lskarnet
-s6-cat: EXTRA_LIBS :=
-s6-cat: src/skaembutils/s6-cat.o -lskarnet
-s6-chmod: EXTRA_LIBS :=
-s6-chmod: src/skaembutils/s6-chmod.o -lskarnet
-s6-chown: EXTRA_LIBS :=
-s6-chown: src/skaembutils/s6-chown.o -lskarnet
-s6-clock: EXTRA_LIBS := ${SYSCLOCK_LIB}
-s6-clock: src/skaembutils/s6-clock.o -lskarnet
-s6-cut: EXTRA_LIBS :=
-s6-cut: src/skaembutils/s6-cut.o -lskarnet
-s6-dirname: EXTRA_LIBS :=
-s6-dirname: src/skaembutils/s6-dirname.o -lskarnet
-s6-dumpenv: EXTRA_LIBS :=
-s6-dumpenv: src/skaembutils/s6-dumpenv.o -lskarnet
-s6-echo: EXTRA_LIBS :=
-s6-echo: src/skaembutils/s6-echo.o -lskarnet
-s6-env: EXTRA_LIBS :=
-s6-env: src/skaembutils/s6-env.o -lskarnet
-s6-expr: EXTRA_LIBS :=
-s6-expr: src/skaembutils/s6-expr.o -lskarnet
+s6-basename: EXTRA_LIBS := -lskarnet
+s6-basename: src/skaembutils/s6-basename.o
+s6-cat: EXTRA_LIBS := -lskarnet
+s6-cat: src/skaembutils/s6-cat.o
+s6-chmod: EXTRA_LIBS := -lskarnet
+s6-chmod: src/skaembutils/s6-chmod.o
+s6-chown: EXTRA_LIBS := -lskarnet
+s6-chown: src/skaembutils/s6-chown.o
+s6-clock: EXTRA_LIBS := -lskarnet ${SYSCLOCK_LIB}
+s6-clock: src/skaembutils/s6-clock.o
+s6-cut: EXTRA_LIBS := -lskarnet
+s6-cut: src/skaembutils/s6-cut.o
+s6-dirname: EXTRA_LIBS := -lskarnet
+s6-dirname: src/skaembutils/s6-dirname.o
+s6-dumpenv: EXTRA_LIBS := -lskarnet
+s6-dumpenv: src/skaembutils/s6-dumpenv.o
+s6-echo: EXTRA_LIBS := -lskarnet
+s6-echo: src/skaembutils/s6-echo.o
+s6-env: EXTRA_LIBS := -lskarnet
+s6-env: src/skaembutils/s6-env.o
+s6-expr: EXTRA_LIBS := -lskarnet
+s6-expr: src/skaembutils/s6-expr.o
 s6-false: EXTRA_LIBS :=
 s6-false: src/skaembutils/s6-false.o
-s6-format-filter: EXTRA_LIBS :=
-s6-format-filter: src/skaembutils/s6-format-filter.o -lskarnet
-s6-grep: EXTRA_LIBS :=
-s6-grep: src/skaembutils/s6-grep.o -lskarnet
-s6-head: EXTRA_LIBS :=
-s6-head: src/skaembutils/s6-head.o -lskarnet
-s6-hiercopy: EXTRA_LIBS :=
-s6-hiercopy: src/skaembutils/s6-hiercopy.o -lskarnet
-s6-linkname: EXTRA_LIBS :=
-s6-linkname: src/skaembutils/s6-linkname.o -lskarnet
-s6-ln: EXTRA_LIBS := ${SOCKET_LIB} ${SYSCLOCK_LIB}
-s6-ln: src/skaembutils/s6-ln.o -lskarnet
-s6-ls: EXTRA_LIBS :=
-s6-ls: src/skaembutils/s6-ls.o -lskarnet
-s6-maximumtime: EXTRA_LIBS := ${SYSCLOCK_LIB} ${SPAWN_LIB}
-s6-maximumtime: src/skaembutils/s6-maximumtime.o -lskarnet
-s6-mkdir: EXTRA_LIBS :=
-s6-mkdir: src/skaembutils/s6-mkdir.o -lskarnet
-s6-mkfifo: EXTRA_LIBS :=
-s6-mkfifo: src/skaembutils/s6-mkfifo.o -lskarnet
-s6-nice: EXTRA_LIBS :=
-s6-nice: src/skaembutils/s6-nice.o -lskarnet
-s6-nuke: EXTRA_LIBS :=
-s6-nuke: src/skaembutils/s6-nuke.o -lskarnet
-s6-pause: EXTRA_LIBS :=
-s6-pause: src/skaembutils/s6-pause.o -lskarnet
-s6-printenv: EXTRA_LIBS :=
-s6-printenv: src/skaembutils/s6-printenv.o -lskarnet
-s6-quote: EXTRA_LIBS :=
-s6-quote: src/skaembutils/s6-quote.o -lskarnet
-s6-quote-filter: EXTRA_LIBS :=
-s6-quote-filter: src/skaembutils/s6-quote-filter.o -lskarnet
-s6-rename: EXTRA_LIBS :=
-s6-rename: src/skaembutils/s6-rename.o -lskarnet
-s6-rmrf: EXTRA_LIBS :=
-s6-rmrf: src/skaembutils/s6-rmrf.o -lskarnet
-s6-seq: EXTRA_LIBS :=
-s6-seq: src/skaembutils/s6-seq.o -lskarnet
-s6-sleep: EXTRA_LIBS := ${SYSCLOCK_LIB}
-s6-sleep: src/skaembutils/s6-sleep.o -lskarnet
-s6-sort: EXTRA_LIBS :=
-s6-sort: src/skaembutils/s6-sort.o -lskarnet
+s6-format-filter: EXTRA_LIBS := -lskarnet
+s6-format-filter: src/skaembutils/s6-format-filter.o
+s6-grep: EXTRA_LIBS := -lskarnet
+s6-grep: src/skaembutils/s6-grep.o
+s6-head: EXTRA_LIBS := -lskarnet
+s6-head: src/skaembutils/s6-head.o
+s6-hiercopy: EXTRA_LIBS := -lskarnet
+s6-hiercopy: src/skaembutils/s6-hiercopy.o
+s6-linkname: EXTRA_LIBS := -lskarnet
+s6-linkname: src/skaembutils/s6-linkname.o
+s6-ln: EXTRA_LIBS := -lskarnet ${SOCKET_LIB} ${SYSCLOCK_LIB}
+s6-ln: src/skaembutils/s6-ln.o
+s6-ls: EXTRA_LIBS := -lskarnet
+s6-ls: src/skaembutils/s6-ls.o
+s6-maximumtime: EXTRA_LIBS := -lskarnet ${SYSCLOCK_LIB} ${SPAWN_LIB}
+s6-maximumtime: src/skaembutils/s6-maximumtime.o
+s6-mkdir: EXTRA_LIBS := -lskarnet
+s6-mkdir: src/skaembutils/s6-mkdir.o
+s6-mkfifo: EXTRA_LIBS := -lskarnet
+s6-mkfifo: src/skaembutils/s6-mkfifo.o
+s6-nice: EXTRA_LIBS := -lskarnet
+s6-nice: src/skaembutils/s6-nice.o
+s6-nuke: EXTRA_LIBS := -lskarnet
+s6-nuke: src/skaembutils/s6-nuke.o
+s6-pause: EXTRA_LIBS := -lskarnet
+s6-pause: src/skaembutils/s6-pause.o
+s6-printenv: EXTRA_LIBS := -lskarnet
+s6-printenv: src/skaembutils/s6-printenv.o
+s6-quote: EXTRA_LIBS := -lskarnet
+s6-quote: src/skaembutils/s6-quote.o
+s6-quote-filter: EXTRA_LIBS := -lskarnet
+s6-quote-filter: src/skaembutils/s6-quote-filter.o
+s6-rename: EXTRA_LIBS := -lskarnet
+s6-rename: src/skaembutils/s6-rename.o
+s6-rmrf: EXTRA_LIBS := -lskarnet
+s6-rmrf: src/skaembutils/s6-rmrf.o
+s6-seq: EXTRA_LIBS := -lskarnet
+s6-seq: src/skaembutils/s6-seq.o
+s6-sleep: EXTRA_LIBS := -lskarnet ${SYSCLOCK_LIB}
+s6-sleep: src/skaembutils/s6-sleep.o
+s6-sort: EXTRA_LIBS := -lskarnet
+s6-sort: src/skaembutils/s6-sort.o
 s6-sync: EXTRA_LIBS :=
 s6-sync: src/skaembutils/s6-sync.o
-s6-tail: EXTRA_LIBS :=
-s6-tail: src/skaembutils/s6-tail.o -lskarnet
-s6-test: EXTRA_LIBS :=
-s6-test: src/skaembutils/s6-test.o -lskarnet
-s6-touch: EXTRA_LIBS :=
-s6-touch: src/skaembutils/s6-touch.o -lskarnet
+s6-tail: EXTRA_LIBS := -lskarnet
+s6-tail: src/skaembutils/s6-tail.o
+s6-test: EXTRA_LIBS := -lskarnet
+s6-test: src/skaembutils/s6-test.o
+s6-touch: EXTRA_LIBS := -lskarnet
+s6-touch: src/skaembutils/s6-touch.o
 s6-true: EXTRA_LIBS :=
 s6-true: src/skaembutils/s6-true.o
-s6-uniquename: EXTRA_LIBS := ${SOCKET_LIB} ${SYSCLOCK_LIB}
-s6-uniquename: src/skaembutils/s6-uniquename.o -lskarnet
-s6-unquote: EXTRA_LIBS :=
-s6-unquote: src/skaembutils/s6-unquote.o -lskarnet
-s6-unquote-filter: EXTRA_LIBS :=
-s6-unquote-filter: src/skaembutils/s6-unquote-filter.o -lskarnet
-s6-update-symlinks: EXTRA_LIBS := ${SOCKET_LIB} ${SYSCLOCK_LIB}
-s6-update-symlinks: src/skaembutils/s6-update-symlinks.o -lskarnet
-seekablepipe: EXTRA_LIBS :=
-seekablepipe: src/skaembutils/seekablepipe.o -lskarnet
+s6-uniquename: EXTRA_LIBS := -lskarnet ${SOCKET_LIB} ${SYSCLOCK_LIB}
+s6-uniquename: src/skaembutils/s6-uniquename.o
+s6-unquote: EXTRA_LIBS := -lskarnet
+s6-unquote: src/skaembutils/s6-unquote.o
+s6-unquote-filter: EXTRA_LIBS := -lskarnet
+s6-unquote-filter: src/skaembutils/s6-unquote-filter.o
+s6-update-symlinks: EXTRA_LIBS := -lskarnet ${SOCKET_LIB} ${SYSCLOCK_LIB}
+s6-update-symlinks: src/skaembutils/s6-update-symlinks.o
+seekablepipe: EXTRA_LIBS := -lskarnet
+seekablepipe: src/skaembutils/seekablepipe.o
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"