diff options
author | Andrew G. Morgan <morgan@kernel.org> | 2020-09-12 08:54:06 -0700 |
---|---|---|
committer | Andrew G. Morgan <morgan@kernel.org> | 2020-09-12 08:54:06 -0700 |
commit | 3e43abc9c77a07b7826853b77a43985ab12133d6 (patch) | |
tree | b7d5a1e08817e69a5490417b1fbf242aeee9d419 /progs | |
parent | 8047ae3fdd547e8c2dabd2249992712c95b1c2ed (diff) | |
download | libcap2-3e43abc9c77a07b7826853b77a43985ab12133d6.tar.gz |
Be slightly more selective in what to build.
The static build of progs and tests, only needs the .a
libraries to be built.
Bug report from Thomas Petazzoni (trying to get capsh
etc to build against uClibc statically).
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Diffstat (limited to 'progs')
-rw-r--r-- | progs/Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/progs/Makefile b/progs/Makefile index f416e59..9462a2f 100644 --- a/progs/Makefile +++ b/progs/Makefile @@ -10,16 +10,18 @@ BUILD=$(PROGS) ifeq ($(DYNAMIC),yes) LDPATH = LD_LIBRARY_PATH=../libcap +DEPSBUILD = all else LDFLAGS += --static +DEPSBUILD = libcap.a endif -DEPS=../libcap/libcap.a ../libcap/libpsx.a +DEPS=../libcap/libcap.a all: $(BUILD) $(DEPS): - make -C ../libcap all + make -C ../libcap $(DEPSBUILD) $(BUILD): %: %.o $(DEPS) $(CC) $(CFLAGS) -o $@ $< $(LIBCAPLIB) $(LDFLAGS) |