blob: c065cc89b3e785da6b598898f99ca94b309437bc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
From: Stephen Gelman <ssgelm@debian.org>
Date: Tue, 9 Jul 2019 20:31:52 -0500
Subject: Build with dh CLAGS
This allows proper hardening to be done
---
--- a/installwatch/Makefile
+++ b/installwatch/Makefile
@@ -16,10 +16,10 @@
all: installwatch.so
installwatch.so: installwatch.o
- ld -shared -o installwatch.so installwatch.o -ldl -lc
+ ld -znow -shared -o installwatch.so installwatch.o -ldl -lc
installwatch.o: installwatch.c localdecls.h
- gcc -Wall -c -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DVERSION=\"$(VERSION)\" installwatch.c
+ gcc $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -Wall -c -g -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DVERSION=\"$(VERSION)\" installwatch.c
localdecls.h: create-localdecls
./create-localdecls
|