diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2011-02-23 21:07:25 +0000 |
---|---|---|
committer | Tom Rini <tom_rini@mentor.com> | 2011-02-23 14:08:29 -0700 |
commit | 813a686a451a9a8473473ab1db455abb510cee85 (patch) | |
tree | ffefad85e57b0f5f69940642b256d1d40251f489 /recipes/libcap/libcap2 | |
parent | b7eb89b012c53151c7af060511ed4b3cbd684514 (diff) | |
download | openembedded-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.patch | 30 |
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 |