patch-deps_hiredis_Makefile 1.0 KB

123456789101112131415161718192021222324252627282930
  1. $OpenBSD: patch-deps_hiredis_Makefile,v 1.6 2014/07/12 09:53:57 dcoppa Exp $
  2. --- deps/hiredis/Makefile.orig Mon Jun 23 16:56:18 2014
  3. +++ deps/hiredis/Makefile Sat Jul 12 11:06:45 2014
  4. @@ -25,9 +25,9 @@ export REDIS_TEST_CONFIG
  5. # Fallback to gcc when $CC is not in $PATH.
  6. CC:=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc')
  7. -OPTIMIZATION?=-O3
  8. +# OPTIMIZATION?=-O3
  9. WARNINGS=-Wall -W -Wstrict-prototypes -Wwrite-strings
  10. -DEBUG?= -g -ggdb
  11. +# DEBUG?= -g -ggdb
  12. REAL_CFLAGS=$(OPTIMIZATION) -fPIC $(CFLAGS) $(WARNINGS) $(DEBUG) $(ARCH)
  13. REAL_LDFLAGS=$(LDFLAGS) $(ARCH)
  14. @@ -134,8 +134,12 @@ endif
  15. INSTALL?= cp -a
  16. +ifndef INSTALL_DIR
  17. + INSTALL_DIR= mkdir -p
  18. +endif
  19. +
  20. install: $(DYLIBNAME) $(STLIBNAME)
  21. - mkdir -p $(INSTALL_INCLUDE_PATH) $(INSTALL_LIBRARY_PATH)
  22. + $(INSTALL_DIR) $(INSTALL_INCLUDE_PATH) $(INSTALL_LIBRARY_PATH)
  23. $(INSTALL) hiredis.h async.h adapters $(INSTALL_INCLUDE_PATH)
  24. $(INSTALL) $(DYLIBNAME) $(INSTALL_LIBRARY_PATH)/$(DYLIB_MINOR_NAME)
  25. cd $(INSTALL_LIBRARY_PATH) && ln -sf $(DYLIB_MINOR_NAME) $(DYLIB_MAJOR_NAME)