patch-config 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. $OpenBSD: patch-config,v 1.1.1.1 2014/11/30 20:54:04 landry Exp $
  2. --- config.orig Mon Jul 24 03:42:06 2006
  3. +++ config Tue Nov 25 16:02:14 2014
  4. @@ -1,26 +1,26 @@
  5. # Installation directories
  6. # System's libraries directory (where binary libraries are installed)
  7. -LUA_LIBDIR= /usr/local/lib/lua/5.0
  8. +LUA_LIBDIR= ${LOCALBASE}/lib/lua/${MODLUA_VERSION}
  9. # Lua includes directory
  10. -LUA_INC= /usr/local/include
  11. +LUA_INC= ${LOCALBASE}/include/lua-${MODLUA_VERSION}
  12. # OpenLDAP includes directory
  13. -OPENLDAP_INC= /usr/local/include
  14. +OPENLDAP_INC= ${LOCALBASE}/include
  15. # OpenLDAP library (an optional directory can be specified with -L<dir>)
  16. -OPENLDAP_LIB= -lldap
  17. +OPENLDAP_LIB= -L${LOCALBASE}/lib -lldap
  18. # OS dependent
  19. LIB_OPTION= -shared #for Linux
  20. #LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
  21. # Lua version number (first and second digits of target version)
  22. -LUA_VERSION_NUM= 500
  23. -LIBNAME= $T.so.$V
  24. +LUA_VERSION_NUM= 501
  25. +LIBNAME= $T.so
  26. COMPAT_DIR= ../compat/src
  27. # Compilation parameters
  28. WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -ansi
  29. INCS= -I$(LUA_INC) -I$(OPENLDAP_INC) -I$(COMPAT_DIR)
  30. -CFLAGS= $(WARN) $(INCS)
  31. -CC= gcc
  32. +CFLAGS+= $(WARN) $(INCS)
  33. +CC?= gcc
  34. # $Id: patch-config,v 1.1.1.1 2014/11/30 20:54:04 landry Exp $