File: 01-makefile.in-ldflags.diff

package info (click to toggle)
adjtimex 1.29-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,084 kB
  • sloc: ansic: 12,625; sh: 311; makefile: 180
file content (39 lines) | stat: -rw-r--r-- 1,118 bytes parent folder | download | duplicates (4)
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
36
37
38
39
From: Emanuele Rocca <ema@debian.org>
Date: Fri, 28 Mar 2014 15:59:46 +0100
Subject: Add LDFLAGS to Makefile.in

Description: add extra flags to Makefile.in to allow GCC hardening
             and modify the original upstream CFLAGS to accept flags
             from DH9.
Author: Joao Eriberto Mota Filho <eriberto@debian.org>
Last-Update: 2014-11-18
---
 Makefile.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index 75ba580..fefa0d6 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -4,7 +4,7 @@ VPATH = .
 
 VERSION=1.29
 
-CFLAGS = @CFLAGS@ -Wall
+CFLAGS += @CFLAGS@ -Wall
 prefix = @prefix@
 man1dir=@mandir@/man1
 exec_prefix = @exec_prefix@
@@ -36,10 +36,10 @@ Makefile config.h: Makefile.in config.h.in
 
 adjtimex: adjtimex.c mat.o config.h Makefile
 	$(CC) $(CFLAGS) -I. -DVERSION=\"$(VERSION)\" -o adjtimex  \
-		 adjtimex.c mat.o -lm
+		 adjtimex.c mat.o -lm $(LDFLAGS) $(CPPFLAGS)
 
 mat.o: mat.c
-	$(CC) $(CFLAGS) -c mat.c
+	$(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -c mat.c
 
 install: all
 	$(INSTALL) -g bin -m 755 -o root adjtimex $(bindir)/adjtimex