File: hardening.patch

package info (click to toggle)
libace-perl 1.92-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,120 kB
  • sloc: perl: 7,763; ansic: 7,420; makefile: 81
file content (28 lines) | stat: -rw-r--r-- 985 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
Description: Hardening flags in compiler
Author: Andreas Tille <tille@debian.org>
Reviewed-By: Sascha Steinbiss <satta@debian.org>
Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=169601
Last-Update: 2021-02-20
---
--- a/acelib/Makefile
+++ b/acelib/Makefile
@@ -42,8 +42,8 @@
 ## Different platforms use CC or COMPILE.c
 #  (USEROPTS - see comments at top of file)
 #
-CC =        $(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -c
-COMPILE.c = $(COMPILER) $(USEROPTS) $(IDIR) -D$(NAME) -c
+CC =        $(COMPILER) $(CFLAGS) $(CPPFLAGS) $(USEROPTS) $(IDIR) -D$(NAME) -c
+COMPILE.c = $(COMPILER) $(CFLAGS) $(CPPFLAGS) $(USEROPTS) $(IDIR) -D$(NAME) -c
 
 ###########################################################
 ## make targets.
@@ -106,7 +106,7 @@
 rpcace_sp.o: rpcace_sp.c rpcace_svc.c
 
 aceclientlib.o: aceclientlib.c rpcace.h
-	$(CC) -c $<
+	$(CC) $(LDFLAGS) -c $<
 
 RPC_CLIENT_OBJS = aceclientlib.o rpcace_clnt.o rpcace_xdr.o
 RPC_SERVER_OBJS = rpcace_sp.o  rpcace_xdr.o