OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.7 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../libcap/libcap-1.10-shared.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. # Copyright (C) 1998 - 2004 Clifford Wolf
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- T2-COPYRIGHT-NOTE-END ---
  17. Pulled from RedHat SRPM to (mostly) fix samba (3.0.x) compilation on
  18. non-x86 systems. Most of this patches are bare hacks - but seem to be
  19. commonly accepted ... :-(
  20. - Rene Rebe <rene.rebe@gmx.net>
  21. --- libcap-1.11/libcap/Makefile.shared 1999-04-17 18:16:31.000000000 -0400
  22. +++ libcap-1.11/libcap/Makefile 2002-07-19 06:24:23.000000000 -0400
  23. @@ -56,12 +56,12 @@ cap_names.sed: Makefile /usr/include/lin
  24. # @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
  25. $(MINLIBNAME): $(OBJS)
  26. - $(LD) -soname $(MAJLIBNAME) -x -shared -o $@ $(OBJS)
  27. + $(CC) -Wl,-soname,$(MAJLIBNAME) -Wl,-x -shared -o $@ $(OBJS)
  28. ln -sf $(MINLIBNAME) $(MAJLIBNAME)
  29. ln -sf $(MAJLIBNAME) $(LIBNAME)
  30. %.o: %.c $(INCLS)
  31. - $(CC) $(CFLAGS) -c $< -o $@
  32. + $(CC) $(CFLAGS) -fpic -c $< -o $@
  33. install: all
  34. mkdir -p -m 0755 $(INCDIR)/sys