diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-09-27 17:08:45 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2016-09-27 17:16:43 +0200 |
commit | 61a577c7c6dc18ad3160647073ef13ef52398351 (patch) | |
tree | 6a0b26340941280a867fda89a2f4dbb8d64cdff2 /package/libcap/patches/patch-Make_Rules | |
parent | 8b955c16c44ac9644dfeb2de55d39e5a58609cc9 (diff) |
libcap: fix target build
Diffstat (limited to 'package/libcap/patches/patch-Make_Rules')
-rw-r--r-- | package/libcap/patches/patch-Make_Rules | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/package/libcap/patches/patch-Make_Rules b/package/libcap/patches/patch-Make_Rules index 57b0e9425..4c909e150 100644 --- a/package/libcap/patches/patch-Make_Rules +++ b/package/libcap/patches/patch-Make_Rules @@ -1,5 +1,5 @@ --- libcap-2.25.orig/Make.Rules 2016-01-31 02:14:53.000000000 +0100 -+++ libcap-2.25/Make.Rules 2016-09-23 10:37:16.179167139 +0200 ++++ libcap-2.25/Make.Rules 2016-09-26 20:46:02.214228217 +0200 @@ -13,21 +13,14 @@ FAKEROOT=$(DESTDIR) # administrative operations that could be needed to recover a system. @@ -24,3 +24,18 @@ # Target directories +@@ -48,10 +41,10 @@ MINOR=25 + KERNEL_HEADERS := $(topdir)/libcap/include/uapi + IPATH += -fPIC -I$(KERNEL_HEADERS) -I$(topdir)/libcap/include + +-CC := gcc +-CFLAGS := -O2 -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 +-BUILD_CC := $(CC) +-BUILD_CFLAGS := $(CFLAGS) $(IPATH) ++CC ?= gcc ++CFLAGS ?= -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 ++BUILD_CC := $(CC_FOR_BUILD) ++BUILD_CFLAGS := $(CFLAGS_FOR_BUILD) $(IPATH) + AR := ar + RANLIB := ranlib + DEBUG = -g #-DDEBUG |