summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure2
-rw-r--r--package/deps.mak2
-rw-r--r--src/execline/deps-exe/homeof1
3 files changed, 4 insertions, 1 deletions
diff --git a/configure b/configure
index 8ddb019..d51a466 100755
--- a/configure
+++ b/configure
@@ -440,8 +440,10 @@ else
fi
if $usensss ; then
echo "LIBNSSS := -lnsss"
+ echo "MAYBEPTHREAD_LIB := -lpthread"
else
echo "LIBNSSS :="
+ echo "MAYBEPTHREAD_LIB :="
fi
exec 1>&3 3>&-
diff --git a/package/deps.mak b/package/deps.mak
index de60a33..db14ec6 100644
--- a/package/deps.mak
+++ b/package/deps.mak
@@ -121,7 +121,7 @@ getpid: EXTRA_LIBS :=
getpid: src/execline/getpid.o -lskarnet
heredoc: EXTRA_LIBS :=
heredoc: src/execline/heredoc.o -lskarnet
-homeof: EXTRA_LIBS :=
+homeof: EXTRA_LIBS := ${MAYBEPTHREAD_LIB}
homeof: src/execline/homeof.o ${LIBNSSS} -lskarnet
if: EXTRA_LIBS := ${SPAWN_LIB}
if: src/execline/if.o ${LIBEXECLINE} -lskarnet
diff --git a/src/execline/deps-exe/homeof b/src/execline/deps-exe/homeof
index bbe01a8..ee4ed0b 100644
--- a/src/execline/deps-exe/homeof
+++ b/src/execline/deps-exe/homeof
@@ -1,2 +1,3 @@
${LIBNSSS}
-lskarnet
+${MAYBEPTHREAD_LIB}