1
0

patch-Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --- libcli-1.9.7.orig/Makefile 2013-12-21 13:33:31.000000000 +0100
  2. +++ libcli-1.9.7/Makefile 2013-12-21 13:37:09.000000000 +0100
  3. @@ -1,6 +1,5 @@
  4. -UNAME = $(shell sh -c 'uname -s 2>/dev/null || echo not')
  5. DESTDIR =
  6. -PREFIX = /usr/local
  7. +PREFIX = /usr
  8. MAJOR = 1
  9. MINOR = 9
  10. @@ -8,21 +7,15 @@ REVISION = 7
  11. LIB = libcli.so
  12. LIB_STATIC = libcli.a
  13. -CC = gcc
  14. -AR = ar
  15. +CC ?= gcc
  16. +AR ?= ar
  17. ARFLAGS = rcs
  18. -DEBUG = -g
  19. -OPTIM = -O3
  20. -CFLAGS += $(DEBUG) $(OPTIM) -Wall -std=c99 -pedantic -Wformat-security -Wno-format-zero-length -Werror -Wwrite-strings -Wformat -fdiagnostics-show-option -Wextra -Wsign-compare -Wcast-align -Wno-unused-parameter
  21. +CFLAGS += -Wall -std=c99 -pedantic -Wformat-security -Wno-format-zero-length -Werror -Wwrite-strings -Wformat -fdiagnostics-show-option -Wextra -Wsign-compare -Wcast-align -Wno-unused-parameter
  22. LDFLAGS += -shared
  23. LIBPATH += -L.
  24. -ifeq ($(UNAME),Darwin)
  25. -LDFLAGS += -Wl,-install_name,$(LIB).$(MAJOR).$(MINOR)
  26. -else
  27. LDFLAGS += -Wl,-soname,$(LIB).$(MAJOR).$(MINOR)
  28. LIBS = -lcrypt
  29. -endif
  30. all: $(LIB) $(LIB_STATIC) clitest