File: use-cppflags.patch

package info (click to toggle)
fatsort 1.6.4.625-0.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,224 kB
  • sloc: ansic: 4,285; makefile: 3,267; sh: 30
file content (16 lines) | stat: -rw-r--r-- 448 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Use CPPFLAGS to enable FORTIFY_SOURCE
Author: Alex Muntada <alexm@debian.org>
Forwarded: no

--- a/src/Makefile
+++ b/src/Makefile
@@ -69,6 +69,9 @@
 
 OBJ=fatsort.o FAT_fs.o deviceio.o endianness.o sig.o entrylist.o errors.o options.o clusterchain.o sort.o misc.o natstrcmp.o stringlist.o regexlist.o
 
+# Enable FORTIFY_SOURCE etc.
+override CFLAGS += ${CPPFLAGS}
+
 all: ${EXECUTABLE}
 
 ${EXECUTABLE}: $(OBJ) $(DEBUG_OBJ) Makefile