File: Makefile_ldflags

package info (click to toggle)
ftpgrab 0.1.5-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 444 kB
  • sloc: cpp: 2,906; makefile: 123
file content (21 lines) | stat: -rw-r--r-- 698 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: enable hardening
 Add CXXFLAGS, CPPFLAGS, and LDFLAGS to enable hardening
Author: Christian T. Steigies <cts@debian.org>
Last-Update: 2018-09-10
Index: ftpgrab/Makefile
===================================================================
--- ftpgrab.orig/Makefile
+++ ftpgrab/Makefile
@@ -14,10 +14,10 @@ OBJS	=	main.o fgstring.o fgexc.o fgftpco
 		fgpickregexpsync.o fgconi.o fgcharcomp.o
 
 .cc.o:
-		$(CC) -c $*.cc $(CFLAGS)
+		$(CC) -c $*.cc $(CFLAGS) $(CXXFLAGS) $(CPPFLAGS)
 
 ftpgrab:	$(OBJS)
-		$(CC) -o ftpgrab $(OBJS) $(LINK) $(LIBS)
+		$(CC) -o ftpgrab $(OBJS) $(LINK) $(LIBS) $(LDFLAGS)
 
 install:	ftpgrab
 		-install -o root -g root -m 755 ftpgrab debian/ftpgrab/usr/bin/