diff options
-rwxr-xr-x | configure | 9 | ||||
-rw-r--r-- | package/deps.mak | 2 | ||||
-rw-r--r-- | src/execline/deps-exe/homeof | 1 |
3 files changed, 11 insertions, 1 deletions
@@ -45,6 +45,7 @@ Optional features: --enable-slashpackage[=ROOT] assume /package installation at ROOT [disabled] --enable-absolute-paths do not rely on PATH to access this package's binaries, hardcode absolute BINDIR/foobar paths instead [disabled] + --enable-nsss use the nsss library for user information [disabled] EOF exit 0 @@ -149,6 +150,7 @@ static=true allpic=detect slashpackage=false abspath=false +usensss=false sproot= home= exthome= @@ -191,6 +193,8 @@ for arg ; do --disable-slashpackage) sproot= ; slashpackage=false ;; --enable-absolute-paths|--enable-absolute-paths=yes) abspath=true ;; --disable-absolute-paths|--enable-absolute-paths=no) abspath=false ;; + --enable-nsss|--enable-nsss=yes) usensss=true ;; + --disable-nsss|--enable-nsss=no) usensss=false ;; --enable-*|--disable-*|--with-*|--without-*|--*dir=*) ;; --host=*|--target=*) target=${arg#*=} ;; --build=*) build=${arg#*=} ;; @@ -434,6 +438,11 @@ if $allpic ; then else echo "STATIC_LIBS_ARE_PIC :=" fi +if $usensss ; then + echo "LIBNSSS := -lnsss" +else + echo "LIBNSSS :=" +fi exec 1>&3 3>&- echo " ... done." diff --git a/package/deps.mak b/package/deps.mak index 079d518..de60a33 100644 --- a/package/deps.mak +++ b/package/deps.mak @@ -122,7 +122,7 @@ getpid: src/execline/getpid.o -lskarnet heredoc: EXTRA_LIBS := heredoc: src/execline/heredoc.o -lskarnet homeof: EXTRA_LIBS := -homeof: src/execline/homeof.o -lskarnet +homeof: src/execline/homeof.o ${LIBNSSS} -lskarnet if: EXTRA_LIBS := ${SPAWN_LIB} if: src/execline/if.o ${LIBEXECLINE} -lskarnet ifelse: EXTRA_LIBS := ${SPAWN_LIB} diff --git a/src/execline/deps-exe/homeof b/src/execline/deps-exe/homeof index e7187fe..bbe01a8 100644 --- a/src/execline/deps-exe/homeof +++ b/src/execline/deps-exe/homeof @@ -1 +1,2 @@ +${LIBNSSS} -lskarnet |