aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/libcap/libcap2
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2011-02-23 21:07:25 +0000
committerTom Rini <tom_rini@mentor.com>2011-02-23 14:08:29 -0700
commit813a686a451a9a8473473ab1db455abb510cee85 (patch)
treeffefad85e57b0f5f69940642b256d1d40251f489 /recipes/libcap/libcap2
parentb7eb89b012c53151c7af060511ed4b3cbd684514 (diff)
downloadopenembedded-813a686a451a9a8473473ab1db455abb510cee85.tar.gz
libcap2: 2.16 -> 2.20
Fix compilation with newer kernel headers: | .../tmp/sysroots/.../usr/include/asm/sigcontext.h:28:2: error: | expected specifier-qualifier-list before '__u64' | .../tmp/sysroots/.../usr/include/asm/sigcontext.h:191:2: error: | expected specifier-qualifier-list before '__u64' | make[1]: *** [capsh.o] Error 1 Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Tom Rini <tom_rini@mentor.com>
Diffstat (limited to 'recipes/libcap/libcap2')
-rw-r--r--recipes/libcap/libcap2/make.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes/libcap/libcap2/make.patch b/recipes/libcap/libcap2/make.patch
new file mode 100644
index 0000000000..57a2cae513
--- /dev/null
+++ b/recipes/libcap/libcap2/make.patch
@@ -0,0 +1,30 @@
+--- a/Make.Rules
++++ b/Make.Rules
+@@ -47,25 +47,18 @@
+ KERNEL_HEADERS := $(topdir)/libcap/include
+ IPATH += -fPIC -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
+
+-CC := gcc
+-CFLAGS := -O2
+-BUILD_CC := $(CC)
+-BUILD_CFLAGS := $(CFLAGS) $(IPATH)
+-AR := ar
+-RANLIB := ranlib
+ DEBUG = -g #-DDEBUG
+ WARNINGS=-Wall -Wwrite-strings \
+ -Wpointer-arith -Wcast-qual -Wcast-align \
+ -Wstrict-prototypes -Wmissing-prototypes \
+ -Wnested-externs -Winline -Wshadow
+ LD=$(CC) -Wl,-x -shared
+-LDFLAGS := #-g
+
+-SYSTEM_HEADERS = /usr/include
++SYSTEM_HEADERS ?= /usr/include
+ INCS=$(topdir)/libcap/include/sys/capability.h
+ LDFLAGS += -L$(topdir)/libcap
+ CFLAGS += -Dlinux $(WARNINGS) $(DEBUG)
+-PAM_CAP := $(shell if [ -f /usr/include/security/pam_modules.h ]; then echo yes ; else echo no ; fi)
++PAM_CAP := $(shell if [ -f $(SYSTEM_HEADERS)/security/pam_modules.h ]; then echo yes ; else echo no ; fi)
+ INDENT := $(shell if [ -n "$(which indent 2>/dev/null)" ]; then echo "| indent -kr" ; fi)
+ DYNAMIC := $(shell if [ ! -d "$(topdir)/.git" ]; then echo yes; fi)
+ LIBATTR := yes