diff options
-rwxr-xr-x | configure | 11 | ||||
-rw-r--r-- | package/deps.mak | 4 | ||||
-rw-r--r-- | src/mdevd/deps-exe/mdevd | 2 |
3 files changed, 15 insertions, 2 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,13 @@ if $allpic ; then else echo "STATIC_LIBS_ARE_PIC :=" fi +if $usensss ; then + echo "LIBNSSS := -lnsss" + echo "MAYBEPTHREAD_LIB := -lpthread" +else + echo "LIBNSSS :=" + echo "MAYBEPTHREAD_LIB :=" +fi exec 1>&3 3>&- echo " ... done." diff --git a/package/deps.mak b/package/deps.mak index 2d9cd98..2e717e3 100644 --- a/package/deps.mak +++ b/package/deps.mak @@ -5,7 +5,7 @@ src/mdevd/mdevd-coldplug.o src/mdevd/mdevd-coldplug.lo: src/mdevd/mdevd-coldplug.c src/mdevd/mdevd.o src/mdevd/mdevd.lo: src/mdevd/mdevd.c -mdevd: EXTRA_LIBS := -mdevd: src/mdevd/mdevd.o -lskarnet +mdevd: EXTRA_LIBS := ${MAYBEPTHREAD_LIB} +mdevd: src/mdevd/mdevd.o ${LIBNSSS} -lskarnet mdevd-coldplug: EXTRA_LIBS := mdevd-coldplug: src/mdevd/mdevd-coldplug.o -lskarnet diff --git a/src/mdevd/deps-exe/mdevd b/src/mdevd/deps-exe/mdevd index e7187fe..ee4ed0b 100644 --- a/src/mdevd/deps-exe/mdevd +++ b/src/mdevd/deps-exe/mdevd @@ -1 +1,3 @@ +${LIBNSSS} -lskarnet +${MAYBEPTHREAD_LIB} |