File: fortify.patch

package info (click to toggle)
libsx 2.08-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,716 kB
  • sloc: ansic: 8,713; sh: 8,603; makefile: 62
file content (19 lines) | stat: -rw-r--r-- 589 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
Author: Alastair McKinstry <mckinstry@debian.org>
Description: Add compiler flags explicity; needed for fortified compilation.
Last-Updated: 2013-05-18
Forwarded: no

Index: libsx-2.08/libsx_defs
===================================================================
--- libsx-2.08.orig/libsx_defs
+++ libsx-2.08/libsx_defs
@@ -11,6 +11,9 @@
 CC     = gcc
 #CC     = cc
 
+# Needed for fortify
+%.o: %.c
+	$(CC)  $(CPPFLAGS) -c -o $@  $(CFLAGS)  $<
 
 # Using gcc it's nice to be real strict and compile with -Wall, for
 # production versions of the library you probably just want -O or -O2