Restore correct source location for <sys/capability.h>
Reported-by: Robby Workman <rworkman@slackware.com>
Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
diff --git a/Make.Rules b/Make.Rules
index d597fde..d1a554f 100644
--- a/Make.Rules
+++ b/Make.Rules
@@ -42,10 +42,13 @@
# Compilation specifics
+KERNEL_HEADERS := $(topdir)/libcap/include
+IPATH += -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
+
CC := gcc
CFLAGS := -O2
BUILD_CC := $(CC)
-BUILD_CFLAGS := $(CFLAGS)
+BUILD_CFLAGS := $(CFLAGS) $(IPATH)
AR := ar
RANLIB := ranlib
DEBUG = -g #-DDEBUG
@@ -56,9 +59,7 @@
LD=$(CC) -Wl,-x -shared
LDFLAGS := #-g
-KERNEL_HEADERS := $(topdir)/libcap/include
SYSTEM_HEADERS = /usr/include
-IPATH += -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
INCS=$(topdir)/libcap/include/sys/capability.h
LDFLAGS += -L$(topdir)/libcap
CFLAGS += -Dlinux $(WARNINGS) $(DEBUG) $(IPATH)