patch-lib_Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. $OpenBSD: patch-lib_Makefile,v 1.4 2017/01/05 22:04:37 sthen Exp $
  2. --- lib/Makefile.orig Tue Nov 22 20:34:17 2016
  3. +++ lib/Makefile Tue Jan 3 21:49:02 2017
  4. @@ -86,8 +86,8 @@ all32: all
  5. liblz4.a: *.c
  6. ifeq ($(BUILD_STATIC),yes)
  7. @echo compiling static library
  8. - @$(CC) $(CPPFLAGS) $(CFLAGS) -c $^
  9. - @$(AR) rcs $@ *.o
  10. + $(CC) $(CPPFLAGS) $(CFLAGS) -c $^
  11. + $(AR) rcs $@ *.o
  12. endif
  13. liblz4: *.c
  14. @@ -96,10 +96,7 @@ ifneq (,$(filter Windows%,$(OS)))
  15. @$(CC) $(FLAGS) -DLZ4_DLL_EXPORT=1 -shared $^ -o dll\$@.dll
  16. dlltool -D dll\liblz4.dll -d dll\liblz4.def -l dll\liblz4.lib
  17. else
  18. - @$(CC) $(FLAGS) -shared $^ -fPIC $(SONAME_FLAGS) -o $@.$(SHARED_EXT_VER)
  19. - @echo creating versioned links
  20. - @ln -sf $@.$(SHARED_EXT_VER) $@.$(SHARED_EXT_MAJOR)
  21. - @ln -sf $@.$(SHARED_EXT_VER) $@.$(SHARED_EXT)
  22. + $(CC) $(FLAGS) -shared $^ -fPIC $(SONAME_FLAGS) -o $@.$(SHARED_EXT_VER)
  23. endif
  24. clean:
  25. @@ -110,7 +107,7 @@ clean:
  26. #------------------------------------------------------------------------
  27. #make install is validated only for Linux, OSX, kFreeBSD, Hurd and
  28. #FreeBSD targets
  29. -ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU FreeBSD))
  30. +ifneq (,$(filter $(shell uname),Linux Darwin GNU/kFreeBSD GNU FreeBSD OpenBSD))
  31. liblz4.pc: liblz4.pc.in Makefile
  32. @echo creating pkgconfig