]> git.pld-linux.org Git - packages/libcap.git/blame - libcap-link.patch
- link patch (link *.so using gcc not ld to avoid binary compatibility problems)
[packages/libcap.git] / libcap-link.patch
CommitLineData
2f091405
JB
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,7 +34,7 @@
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
This page took 0.054817 seconds and 4 git commands to generate.