diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2020-04-05 19:31:19 -0700 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2020-04-05 19:31:19 -0700 |
commit | cbca9abc73acf779a3110baa0d3c66960951b1fa (patch) | |
tree | 1c721f40fcfd9144169798fa5bb7ea15def12e2f /progs/Makefile | |
parent | ad120c13941d6a88d81f18bac480bfac5d7ff972 (diff) | |
download | libcap2-cbca9abc73acf779a3110baa0d3c66960951b1fa.tar.gz |
Support overriding the preferred shell for capsh.
Either supply --shell=/xx/yy as an argument to capsh, or
use the Make.Rules CAPSH_SHELL override when building.
This is an adaptation of an idea from Rosen Penev.
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'progs/Makefile')
-rw-r--r-- | progs/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/Makefile b/progs/Makefile index 4c24f16..076e44f 100644 --- a/progs/Makefile +++ b/progs/Makefile @@ -23,7 +23,7 @@ $(BUILD): %: %.o $(DEPS) $(CC) $(CFLAGS) -o $@ $< $(LIBCAPLIB) $(LDFLAGS) %.o: %.c $(INCS) - $(CC) $(IPATH) $(CFLAGS) -c $< -o $@ + $(CC) $(IPATH) $(CAPSH_SHELL) $(CFLAGS) -c $< -o $@ install: all mkdir -p -m 0755 $(FAKEROOT)$(SBINDIR) |