]> git.pld-linux.org Git - packages/libcap.git/blame - libcap-link.patch
This commit was manufactured by cvs2git to create branch 'AC-branch'.
[packages/libcap.git] / libcap-link.patch
CommitLineData
b35b0179 1--- libcap-1.92/libcap/Makefile.orig Fri Apr 23 08:15:10 1999
2+++ libcap-1.92/libcap/Makefile Tue Oct 22 23:33:28 2002
3@@ -34,12 +34,12 @@
4 # @sed -ne '/^#define[ \t]CAP[_A-Z]\+[ \t]\+[0-9]\+/{s/^#define CAP_\([^ \t]*\)[ \t]*\([^ \t]*\)/ \{ \2, \"\1\" \},/;y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/;p;}' < /usr/include/linux/capability.h | fgrep -v 0x > cap_names.sed
5
6 $(MINLIBNAME): $(OBJS)
7- $(LD) -soname $(MAJLIBNAME) -x -shared -o $@ $(OBJS)
8+ $(CC) -Wl,-soname -Wl,$(MAJLIBNAME) -Wl,-x -shared -o $@ $(OBJS)
9 ln -sf $(MINLIBNAME) $(MAJLIBNAME)
10 ln -sf $(MAJLIBNAME) $(LIBNAME)
11
12 %.o: %.c $(INCLS)
13- $(CC) $(CFLAGS) -c $< -o $@
14+ $(CC) $(CFLAGS) -fPIC -c $< -o $@
15
16 install: all
17 mkdir -p -m 0755 $(INCDIR)/sys
18--- libcap-1.10/libcap/cap_sys.c.orig 1999-04-18 00:16:31.000000000 +0200
19+++ libcap-1.10/libcap/cap_sys.c 2004-08-03 21:06:00.506249264 +0200
20@@ -8,16 +8,8 @@
21 */
22
23 #include "libcap.h"
24-#define __LIBRARY__
25-#include <linux/unistd.h>
26
27-_syscall2(int, capget,
28- cap_user_header_t, header,
29- cap_user_data_t, data)
30-
31-_syscall2(int, capset,
32- cap_user_header_t, header,
33- const cap_user_data_t, data)
34+/* capget(), capset() syscalls are defined in libc */
35
36 /*
37 * $Log$
This page took 0.062349 seconds and 4 git commands to generate.