File: 20_add-gcc-hardening.patch

package info (click to toggle)
png2html 1.1-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 496 kB
  • sloc: ansic: 238; makefile: 17
file content (22 lines) | stat: -rw-r--r-- 580 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: add GCC hardening.
Author: Joao Eriberto Mota Filho <eriberto@debian.org>
Last-Update: 2016-08-23
Index: png2html-1.1/Makefile
===================================================================
--- png2html-1.1.orig/Makefile
+++ png2html-1.1/Makefile
@@ -1,12 +1,12 @@
 # Makefile for png2html, (c) 1999 Geoff Holden
 
 CC      = gcc
-CFLAGS  = -O2 -Wall -lpng -lgd
+CFLAGS += -O2 -Wall -lpng -lgd
 
 all:    png2html
 
 png2html:
-	$(CC) -o png2html png2html.c $(CFLAGS)
+	$(CC) -o png2html png2html.c $(CFLAGS) $(CPPFLAGS) $(LDFLAGS)
 
 clean:
 	rm -f *~ png2html