File: fix-makefile

package info (click to toggle)
cvsps 2.1-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 620 kB
  • sloc: ansic: 4,724; makefile: 60; sh: 26
file content (27 lines) | stat: -rw-r--r-- 791 bytes parent folder | download | duplicates (3)
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
Description: - Fix upstream Makefile and add hardening.
             - Fix destination install directory.
Author: Giovani Agusuto Ferreira <giovani@riseup.net>
Last-Update: 2015-09-07Index: cvsps-2.1/Makefile
===================================================================
Index: cvsps-2.1/Makefile
===================================================================
--- cvsps-2.1.orig/Makefile
+++ cvsps-2.1/Makefile
@@ -3,7 +3,7 @@ MINOR=1
 CC?=gcc
 CFLAGS?=-g -O2 -Wall 
 CFLAGS+=-I. -DVERSION=\"$(MAJOR).$(MINOR)\"
-prefix?=/usr/local
+prefix?=/usr
 OBJS=\
 	cbtcommon/debug.o\
 	cbtcommon/hash.o\
@@ -21,7 +21,7 @@ OBJS=\
 all: cvsps
 
 cvsps: $(OBJS)
-	$(CC) -o cvsps $(OBJS) -lz
+	$(CC) $(LDFLAGS) -o cvsps $(OBJS) -lz
 
 install:
 	[ -d $(prefix)/bin ] || mkdir -p $(prefix)/bin