File: ldflags.patch

package info (click to toggle)
kali 3.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 716 kB
  • sloc: ansic: 3,502; makefile: 61
file content (30 lines) | stat: -rw-r--r-- 829 bytes parent folder | download
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
From 4c4dfb8a9688d6ca8b23483d96e7a90dd028a0ea Mon Sep 17 00:00:00 2001
From: Colin Watson <cjwatson@debian.org>
Date: Mon, 27 Jan 2014 07:47:16 +0000
Subject: Honour LDFLAGS

Forwarded: no
Last-Update: 2013-06-26

Patch-Name: ldflags.patch
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 6117971..ba99647 100644
--- a/Makefile
+++ b/Makefile
@@ -70,10 +70,10 @@ help.h:	HELP
 #-----------------------------------------------    programs itself
 
 ${KALI}: ${KALIOBJS}
-	${CC} -o $@ ${CFLAGS} ${KALIOBJS} ${LIBS}
+	${CC} -o $@ ${CFLAGS} ${KALIOBJS} ${LDFLAGS} ${LIBS}
 
 ${KALIPRINT}:  ${PRINTOBJS}
-	${CC} -o $@ ${CFLAGS} ${PRINTOBJS} -lm
+	${CC} -o $@ ${CFLAGS} ${PRINTOBJS} ${LDFLAGS} -lm
 
 #----------------------------------------------     misc tasks
 clean: