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.

46 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../libcap/0001-opensde-shared-linking.patch
  5. # Copyright (C) 2013 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Fix cross-compiling libcap by explicitely using $CC as linker when linking
  17. the shared library and do not use CFLAGS when linking.
  18. Note:
  19. This patch is kind of OpenSDE specific as we inject 'LD=$arch_target-ld'
  20. into the make options, which is then overwriting the default.
  21. --- a/libcap/Makefile 2013-09-11 09:54:59.268583104 +0200
  22. +++ b/libcap/Makefile 2013-09-11 09:59:57.251523996 +0200
  23. @@ -50,7 +50,7 @@
  24. $(RANLIB) $@
  25. $(MINLIBNAME): $(OBJS)
  26. - $(LD) $(CFLAGS) $(LDFLAGS) -Wl,-soname,$(MAJLIBNAME) -o $@ $^
  27. + $(CC) -shared $(LDFLAGS) -Wl,-soname,$(MAJLIBNAME) -o $@ $^
  28. ln -sf $(MINLIBNAME) $(MAJLIBNAME)
  29. ln -sf $(MAJLIBNAME) $(LIBNAME)
  30. --- a/pam_cap/Makefile 2013-09-11 11:18:23.108440336 +0200
  31. +++ b/pam_cap/Makefile 2013-09-11 11:18:32.272648916 +0200
  32. @@ -17,7 +17,7 @@
  33. install -m 0755 pam_cap.so $(LIBDIR)/security
  34. pam_cap.so: pam_cap.o
  35. - $(LD) $(LDFLAGS) -o pam_cap.so $< $(LDLIBS)
  36. + $(CC) -shared $(LDFLAGS) -o pam_cap.so $< $(LDLIBS)
  37. pam_cap.o: pam_cap.c
  38. $(CC) $(CFLAGS) $(IPATH) -c $< -o $@