summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2018-07-28 13:20:44 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2018-07-28 13:20:44 +0000
commit7ce42356a663f5c70ce66f7a47447e13c01ba9ac (patch)
tree5ace38894de25ded59e5bb4e8f1e668a120eeec9
parent274d990f4785b10a2704da3f2315e24249ad6c3a (diff)
downloadexecline-7ce42356a663f5c70ce66f7a47447e13c01ba9ac.tar.xz
with pthread support for nsss
-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}