patch-Makefile 952 B

12345678910111213141516171819202122232425262728293031
  1. $OpenBSD: patch-Makefile,v 1.3 2013/03/21 21:30:30 pascal Exp $
  2. Allow SHARED_MAJOR and SHARED_MINOR to be overridden.
  3. This doesn't affect kMajorVersion and kMinorVersion in db.h,
  4. but nothing uses them anyway.
  5. Do not use SONAME.
  6. --- Makefile.orig Wed May 30 18:56:59 2012
  7. +++ Makefile Tue Mar 19 14:06:40 2013
  8. @@ -69,8 +69,8 @@ SHARED3 = $(SHARED1)
  9. SHARED = $(SHARED1)
  10. else
  11. # Update db.h if you change these.
  12. -SHARED_MAJOR = 1
  13. -SHARED_MINOR = 5
  14. +SHARED_MAJOR ?= 1
  15. +SHARED_MINOR ?= 5
  16. SHARED1 = libleveldb.$(PLATFORM_SHARED_EXT)
  17. SHARED2 = $(SHARED1).$(SHARED_MAJOR)
  18. SHARED3 = $(SHARED1).$(SHARED_MAJOR).$(SHARED_MINOR)
  19. @@ -82,7 +82,7 @@ $(SHARED2): $(SHARED3)
  20. endif
  21. $(SHARED3):
  22. - $(CXX) $(LDFLAGS) $(PLATFORM_SHARED_LDFLAGS)$(SHARED2) $(CXXFLAGS) $(PLATFORM_SHARED_CFLAGS) $(SOURCES) -o $(SHARED3)
  23. + $(CXX) $(LDFLAGS) $(PLATFORM_SHARED_LDFLAGS) $(CXXFLAGS) $(PLATFORM_SHARED_CFLAGS) $(SOURCES) -o $(SHARED3)
  24. endif # PLATFORM_SHARED_EXT