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.

57 lines
2.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../lualdap/lualdap-1.1.0-cpp-define-LDAP_DEPRECATED.patch
  5. # Copyright (C) 2012 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. From 796f32bb5afd8efd316f3829d7e0956a976a1aef Mon Sep 17 00:00:00 2001
  17. From: Christian Wiese <christian.wiese@securepoint.de>
  18. Date: Wed, 5 Sep 2012 16:12:09 +0200
  19. Subject: [PATCH] build: fixed to define LDAP_DEPRECATED pre-processor flag
  20. This is fixing minor build warings about implicit declarations because
  21. lualdap is using deprecated ldap functions, which are only defined in
  22. the header if LDAP_DEPRECATED is defined.
  23. ---
  24. Makefile | 2 +-
  25. config | 1 +
  26. 2 files changed, 2 insertions(+), 1 deletions(-)
  27. diff --git a/Makefile b/Makefile
  28. index 6a4f06d..0ffc48c 100755
  29. --- a/Makefile
  30. +++ b/Makefile
  31. @@ -14,7 +14,7 @@ OBJS= src/lualdap.o $(COMPAT_O)
  32. src/$(LIBNAME): $(OBJS)
  33. - export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) $(CFLAGS) $(LIB_OPTION) -o src/$(LIBNAME) $(OBJS) $(OPENLDAP_LIB)
  34. + export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) $(CPPFLAGS) $(CFLAGS) $(LIB_OPTION) -o src/$(LIBNAME) $(OBJS) $(OPENLDAP_LIB)
  35. $(COMPAT_DIR)/compat-5.1.o: $(COMPAT_DIR)/compat-5.1.c
  36. $(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
  37. diff --git a/config b/config
  38. index 84543b3..c3404fa 100755
  39. --- a/config
  40. +++ b/config
  41. @@ -21,6 +21,7 @@ COMPAT_DIR= ../compat/src
  42. WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -ansi
  43. INCS= -I$(LUA_INC) -I$(OPENLDAP_INC) -I$(COMPAT_DIR)
  44. CFLAGS= $(WARN) $(INCS)
  45. +CPPFLAGS= -DLDAP_DEPRECATED
  46. CC= gcc
  47. # $Id: config,v 1.5 2006-07-24 01:42:06 tomas Exp $
  48. --
  49. 1.6.6.2