Debian Codegraph @

debian/patches/fix-makefile

raw
1 Description: - Fix upstream Makefile and add hardening.
2 - Fix destination install directory.
3 Author: Giovani Agusuto Ferreira <[email protected]>
4 Last-Update: 2015-09-07Index: cvsps-2.1/Makefile
5 ===================================================================
6 Index: cvsps-2.1/Makefile
7 ===================================================================
8 --- cvsps-2.1.orig/Makefile
9 +++ cvsps-2.1/Makefile
10 @@ -3,7 +3,7 @@ MINOR=1
11 CC?=gcc
12 CFLAGS?=-g -O2 -Wall
13 CFLAGS+=-I. -DVERSION=\"$(MAJOR).$(MINOR)\"
14 -prefix?=/usr/local
15 +prefix?=/usr
16 OBJS=\
17 cbtcommon/debug.o\
18 cbtcommon/hash.o\
19 @@ -21,7 +21,7 @@ OBJS=\
20 all: cvsps
21
22 cvsps: $(OBJS)
23 - $(CC) -o cvsps $(OBJS) -lz
24 + $(CC) $(LDFLAGS) -o cvsps $(OBJS) -lz
25
26 install:
27 [ -d $(prefix)/bin ] || mkdir -p $(prefix)/bin