summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2021-09-10 16:11:57 -0700
committerAndrew G. Morgan <morgan@kernel.org>2021-09-10 16:11:57 -0700
commit893c134ca5cd6fc33ac19d8dbb9d985067d2e66b (patch)
tree5bac1e269aa6b1624bf83601ec627e426c62e422
parente7297c1925d827d3932dc7ed96554a1d94c17dd7 (diff)
downloadlibcap2-893c134ca5cd6fc33ac19d8dbb9d985067d2e66b.tar.gz
Another missing dependency for make -j13
One more missing dependency for pam_cap.so building. Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
-rw-r--r--pam_cap/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/pam_cap/Makefile b/pam_cap/Makefile
index a000978..d852101 100644
--- a/pam_cap/Makefile
+++ b/pam_cap/Makefile
@@ -19,7 +19,11 @@ install: all
execable.o: execable.c ../libcap/execable.h ../libcap/loader.txt
$(CC) $(CFLAGS) $(CPPFLAGS) -DLIBCAP_VERSION=\"libcap-$(VERSION).$(MINOR)\" -DSHARED_LOADER=\"$(shell cat ../libcap/loader.txt)\" -c execable.c -o $@
-pam_cap.so: pam_cap.o execable.o pam_cap_linkopts
+LIBCAP:
+ $(MAKE) -C ../libcap all
+ touch $@
+
+pam_cap.so: pam_cap.o execable.o pam_cap_linkopts LIBCAP
cat pam_cap_linkopts | xargs -e $(LD) $(LDFLAGS) -o $@ pam_cap.o execable.o $(LIBCAPLIB)
# Some distributions force link everything at compile time, and don't
@@ -83,3 +87,4 @@ sudotest: test_pam_cap
clean:
rm -f *.o *.so testlink lazylink.so test_pam_cap pam_cap_linkopts *~
+ rm -f LIBCAP