summaryrefslogtreecommitdiff
path: root/progs/Makefile
diff options
context:
space:
mode:
authorAndrew G. Morgan <morgan@kernel.org>2019-12-02 20:48:13 -0800
committerAndrew G. Morgan <morgan@kernel.org>2019-12-05 21:14:47 -0800
commite9f55d90e482f680504487be6b3afb80865691d6 (patch)
treeb730e5720a0fe89bd12e4886a22b3d40a7e7640e /progs/Makefile
parentf9e5c9e91be200fced2c24a62bcc401344125d2a (diff)
downloadlibcap2-e9f55d90e482f680504487be6b3afb80865691d6.tar.gz
Implement a helper library for POSIX semantics syscalls.
Since Linux kernel supported threads are not POSIX threads and the glibc pthread library only supports POSIX semantics for 9 system calls, to fully support the POSIX semantics for a process sharing its security state across all of its threads, we've created libpsx. This commit also includes a threading test in tests/ for this new psx_syscall() abstraction - one that transparently mirrors calling POSIX-needing semantics syscalls over all running threads. Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'progs/Makefile')
-rw-r--r--progs/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/progs/Makefile b/progs/Makefile
index 148b6af..0786ad3 100644
--- a/progs/Makefile
+++ b/progs/Makefile
@@ -11,12 +11,11 @@ BUILD=$(PROGS)
ifneq ($(DYNAMIC),yes)
LDFLAGS += --static
endif
-LDLIBS += -L../libcap -lcap
all: $(BUILD)
$(BUILD): %: %.o
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDLIBS)
+ $(CC) $(CFLAGS) -o $@ $< $(LIBCAPLIB) $(LDFLAGS)
%.o: %.c $(INCS)
$(CC) $(IPATH) $(CFLAGS) -c $< -o $@