The separation was unnecessary, and caused build problems. Let's go wild and obliterate the library. The files are moved to libshadow. Scripted change: $ find libmisc/ -type f \ | grep '\.[chy]$' \ | xargs mv -t lib; Plus updating the Makefile and other references. While at it, I've sorted the sources lists. Link: <https://github.com/shadow-maint/shadow/pull/792> Reported-by: David Seifert <soap@gentoo.org> Cc: Sam James <sam@gentoo.org> Cc: Christian Bricart <christian@bricart.de> Cc: Michael Vetter <jubalh@iodoru.org> Cc: Robert Förster <Dessa@gmake.de> [ soap tested the Gentoo package ] Tested-by: David Seifert <soap@gentoo.org> Acked-by: David Seifert <soap@gentoo.org> Acked-by: Serge Hallyn <serge@hallyn.com> Acked-by: Iker Pedrosa <ipedrosa@redhat.com> Acked-by: <lslebodn@fedoraproject.org> Signed-off-by: Alejandro Colomar <alx@kernel.org>
13 lines
434 B
Makefile
13 lines
434 B
Makefile
all: test_nss libsubid_zzz.so
|
|
|
|
test_nss: test_nss.c ../../../lib/nss.c
|
|
gcc -c -I../../../lib/ -I../../.. -o test_nss.o test_nss.c
|
|
gcc -o test_nss test_nss.o ../../../lib/.libs/libshadow.a -ldl
|
|
|
|
libsubid_zzz.so: libsubid_zzz.c
|
|
gcc -c -I../../../lib/ -I../../.. -I../../../libsubid libsubid_zzz.c
|
|
gcc -L../../../libsubid -shared -o libsubid_zzz.so libsubid_zzz.o ../../../lib/.libs/libshadow.a -ldl
|
|
|
|
clean:
|
|
rm -f *.o *.so test_nss
|