Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

kompozer compile any kernel 2.6 and above patch

By: a guest on May 22nd, 2012  |  syntax: None  |  size: 1.07 KB  |  views: 92  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- a/security/coreconf/config.mk       2009-05-02 17:42:18.000000000 +0100
  2. +++ b/security/coreconf/config.mk       2012-05-22 00:08:39.000000000 +0100
  3. @@ -63,7 +63,7 @@
  4.  #######################################################################
  5.  
  6.  TARGET_OSES = FreeBSD BSD_OS NetBSD OpenUNIX OS2 QNX Darwin BeOS OpenBSD \
  7. -              OpenVMS AIX
  8. +              OpenVMS AIX Linux
  9.  
  10.  ifeq (,$(filter-out $(TARGET_OSES),$(OS_TARGET)))
  11.  include $(CORE_DEPTH)/coreconf/$(OS_TARGET).mk
  12. --- a/security/coreconf/Linux.mk        2009-05-02 17:42:18.000000000 +0100
  13. +++ b/security/coreconf/Linux.mk        2012-05-22 00:36:03.533374797 +0100
  14. @@ -176,3 +176,17 @@
  15.  # Always set CPU_TAG on Linux, OpenVMS, WINCE.
  16.  #
  17.  CPU_TAG = _$(CPU_ARCH)
  18. +
  19. +#
  20. +#Try to compile with any kernel version 2.6 and above.
  21. +#
  22. +DSO_LDOPTS      += -Wl,-z,defs
  23. +
  24. +OS_REL_CFLAGS   += -DLINUX2_1
  25. +MKSHLIB         = $(CC) $(DSO_LDOPTS) -Wl,-soname -Wl,$(@:$(OBJDIR)/%.so=%.so)
  26. +
  27. +ifdef MAPFILE
  28. +       MKSHLIB += -Wl,--version-script,$(MAPFILE)
  29. +endif
  30. +PROCESS_MAP_FILE = grep -v ';-' $< | \
  31. +        sed -e 's,;+,,' -e 's; DATA ;;' -e 's,;;,,' -e 's,;.*,;,' > $@