summaryrefslogtreecommitdiff
path: root/package/libcli/patches/patch-Makefile
blob: 8ec1b0f04469b69f3076e25cfcff383886b1dea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- libcli-1.9.7.orig/Makefile	2013-12-21 13:33:31.000000000 +0100
+++ libcli-1.9.7/Makefile	2013-12-21 13:37:09.000000000 +0100
@@ -1,6 +1,5 @@
-UNAME = $(shell sh -c 'uname -s 2>/dev/null || echo not')
 DESTDIR =
-PREFIX = /usr/local
+PREFIX = /usr
 
 MAJOR = 1
 MINOR = 9
@@ -8,21 +7,15 @@ REVISION = 7
 LIB = libcli.so
 LIB_STATIC = libcli.a
 
-CC = gcc
-AR = ar
+CC ?= gcc
+AR ?= ar
 ARFLAGS = rcs
-DEBUG = -g
-OPTIM = -O3
-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
+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
 LDFLAGS += -shared
 LIBPATH += -L.
 
-ifeq ($(UNAME),Darwin)
-LDFLAGS += -Wl,-install_name,$(LIB).$(MAJOR).$(MINOR)
-else
 LDFLAGS += -Wl,-soname,$(LIB).$(MAJOR).$(MINOR)
 LIBS = -lcrypt
-endif
 
 all: $(LIB) $(LIB_STATIC) clitest