aboutsummaryrefslogtreecommitdiffstats
path: root/Make.Rules
diff options
context:
space:
mode:
authorAndrew Morgan <morgan@kernel.org>2007-08-13 23:16:50 -0700
committerAndrew Morgan <morgan@kernel.org>2007-08-13 23:34:41 -0700
commitcd45c57c35df7d2ff352ce74a27329e7fec39ae3 (patch)
tree193caa01752ff4c2e186ad32ebce9172b021fe34 /Make.Rules
parentfa0a8b847d6038b538762b8420cabe4569ecaada (diff)
downloadlibcap-cd45c57c35df7d2ff352ce74a27329e7fec39ae3.tar.gz
Build with a pam_cap module.
Note, I've been confused about the capset/capget system calls. It would seem that the current way(TM) is to get the raw API from libc.
Diffstat (limited to 'Make.Rules')
-rw-r--r--Make.Rules8
1 files changed, 4 insertions, 4 deletions
diff --git a/Make.Rules b/Make.Rules
index de20875..3825291 100644
--- a/Make.Rules
+++ b/Make.Rules
@@ -49,16 +49,16 @@ MINOR=99
CC=gcc
COPTFLAGS=-O2
DEBUG=-O2 -g #-DDEBUG
-WARNINGS=-fPIC -D_POSIX_SOURCE -Wall -Wwrite-strings \
+WARNINGS=-fPIC -Wall -Wwrite-strings \
-Wpointer-arith -Wcast-qual -Wcast-align \
-Wstrict-prototypes -Wmissing-prototypes \
-Wnested-externs -Winline -Wshadow
-LD=ld
-LDFLAGS=-s #-g
+LD=$(CC) -Wl,-x -shared
+LDFLAGS=#-g
KERNEL_HEADERS = /usr/include
SYSTEM_HEADERS = /usr/include
-IPATH += -I$(topdir)/libcap/include
+IPATH += -I$(topdir)/libcap/include -I$(KERNEL_HEADERS)
INCS=$(topdir)/libcap/include/sys/capability.h
LIBS=-L$(topdir)/libcap -lcap
CFLAGS=-Dlinux $(WARNINGS) $(DEBUG) $(COPTFLAG) $(IPATH)