2016-03-16 21:20:08 +01:00
|
|
|
From af21635665ab568f3333ff9fe8b474f4950e5acb Mon Sep 17 00:00:00 2001
|
2016-03-07 00:04:54 +01:00
|
|
|
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
Date: Sun, 6 Mar 2016 22:53:24 +0100
|
|
|
|
Subject: [PATCH] libcap: split install into install-shared/install-static
|
2013-11-01 18:47:27 +01:00
|
|
|
|
|
|
|
In order to support static only builds, split the install target into
|
|
|
|
install-shared and install-static targets.
|
|
|
|
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
2016-03-07 00:04:54 +01:00
|
|
|
[yann.morin.1998@free.fr: install the .pc file in the common rule]
|
|
|
|
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
2013-11-01 18:47:27 +01:00
|
|
|
|
2016-03-07 00:04:54 +01:00
|
|
|
diff --git a/libcap/Makefile b/libcap/Makefile
|
2016-03-16 21:20:08 +01:00
|
|
|
index d189777..44ddb27 100644
|
2013-11-01 18:47:27 +01:00
|
|
|
--- a/libcap/Makefile
|
|
|
|
+++ b/libcap/Makefile
|
2016-03-16 21:20:08 +01:00
|
|
|
@@ -62,19 +62,25 @@ $(MINLIBNAME): $(OBJS)
|
2013-11-01 18:47:27 +01:00
|
|
|
cap_text.o: cap_text.c $(USE_GPERF_OUTPUT) $(INCLS)
|
|
|
|
$(CC) $(CFLAGS) $(IPATH) $(INCLUDE_GPERF_OUTPUT) -c $< -o $@
|
|
|
|
|
|
|
|
-install: all
|
|
|
|
+install: install-shared install-static
|
|
|
|
+
|
|
|
|
+install-common:
|
2016-03-16 21:20:08 +01:00
|
|
|
mkdir -p -m 0755 $(FAKEROOT)$(INCDIR)/sys
|
|
|
|
install -m 0644 include/sys/capability.h $(FAKEROOT)$(INCDIR)/sys
|
|
|
|
+ mkdir -p -m 0755 $(FAKEROOT)$(PKGCONFIGDIR)
|
|
|
|
+ install -m 0644 libcap.pc $(FAKEROOT)$(PKGCONFIGDIR)/libcap.pc
|
2013-11-01 18:47:27 +01:00
|
|
|
+
|
2016-03-16 21:20:08 +01:00
|
|
|
+install-static: $(STALIBNAME) install-common
|
|
|
|
mkdir -p -m 0755 $(FAKEROOT)$(LIBDIR)
|
|
|
|
install -m 0644 $(STALIBNAME) $(FAKEROOT)$(LIBDIR)/$(STALIBNAME)
|
2013-11-01 18:47:27 +01:00
|
|
|
+
|
2016-03-16 21:20:08 +01:00
|
|
|
+install-shared: $(MINLIBNAME) install-common
|
|
|
|
install -m 0644 $(MINLIBNAME) $(FAKEROOT)$(LIBDIR)/$(MINLIBNAME)
|
|
|
|
ln -sf $(MINLIBNAME) $(FAKEROOT)$(LIBDIR)/$(MAJLIBNAME)
|
|
|
|
ln -sf $(MAJLIBNAME) $(FAKEROOT)$(LIBDIR)/$(LIBNAME)
|
2016-03-07 00:04:54 +01:00
|
|
|
ifeq ($(FAKEROOT),)
|
|
|
|
-/sbin/ldconfig
|
|
|
|
endif
|
2016-03-16 21:20:08 +01:00
|
|
|
- mkdir -p -m 0755 $(FAKEROOT)$(PKGCONFIGDIR)
|
|
|
|
- install -m 0644 libcap.pc $(FAKEROOT)$(PKGCONFIGDIR)/libcap.pc
|
2016-03-07 00:04:54 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
$(LOCALCLEAN)
|
|
|
|
--
|
|
|
|
1.9.1
|
|
|
|
|