python-pathvalidate: bump version to 0.14.1
[buildroot-gz.git] / package / libcap / 0001-build-system-fixes-for-cross-compilation.patch
blobde2409085ee369b8c6ca2253fa954615808c05ae
1 From d8d70559a279706c206761dfaf665d2197934123 Mon Sep 17 00:00:00 2001
2 From: Gustavo Zacarias <gustavo@zacarias.com.ar>
3 Date: Sun, 6 Mar 2016 22:52:02 +0100
4 Subject: [PATCH] build-system: fixes for cross-compilation
6 Avoid the libcap buildsys forcing CC/CFLAGS/LDFLAGS/AR/RANLIB
8 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
9 [yann.morin.1998@free.fr: dont chmod +x the shared lib]
10 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
12 diff --git a/Make.Rules b/Make.Rules
13 index 8347b26..8a07a3f 100644
14 --- a/Make.Rules
15 +++ b/Make.Rules
16 @@ -48,26 +48,26 @@ MINOR=25
17 KERNEL_HEADERS := $(topdir)/libcap/include/uapi
18 IPATH += -fPIC -I$(KERNEL_HEADERS) -I$(topdir)/libcap/include
20 -CC := gcc
21 -CFLAGS := -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
22 -BUILD_CC := $(CC)
23 -BUILD_CFLAGS := $(CFLAGS) $(IPATH)
24 -AR := ar
25 -RANLIB := ranlib
26 +CC ?= gcc
27 +CFLAGS ?= -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
28 +BUILD_CC ?= $(CC)
29 +BUILD_CFLAGS ?= $(CFLAGS) $(IPATH)
30 +AR ?= ar
31 +RANLIB ?= ranlib
32 DEBUG = -g #-DDEBUG
33 WARNINGS=-Wall -Wwrite-strings \
34 -Wpointer-arith -Wcast-qual -Wcast-align \
35 -Wstrict-prototypes -Wmissing-prototypes \
36 -Wnested-externs -Winline -Wshadow
37 LD=$(CC) -Wl,-x -shared
38 -LDFLAGS := #-g
39 +LDFLAGS ?= #-g
40 BUILD_GPERF := $(shell which gperf >/dev/null 2>/dev/null && echo yes)
42 SYSTEM_HEADERS = /usr/include
43 INCS=$(topdir)/libcap/include/sys/capability.h
44 LDFLAGS += -L$(topdir)/libcap
45 CFLAGS += -Dlinux $(WARNINGS) $(DEBUG)
46 -PAM_CAP := $(shell if [ -f /usr/include/security/pam_modules.h ]; then echo yes ; else echo no ; fi)
47 +PAM_CAP = no
48 INDENT := $(shell if [ -n "$$(which indent 2>/dev/null)" ]; then echo "| indent -kr" ; fi)
49 DYNAMIC := $(shell if [ ! -d "$(topdir)/.git" ]; then echo yes; fi)
51 --
52 1.9.1