Package: attr / 1:2.4.47-2

02-687531-fix-missing-ldflags.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Use build flags from environment (dpkg-buildflags).
 Necessary for hardening flags.
Author: Simon Ruderich <simon@ruderich.org>

Index: attr-2.4.47/libmisc/Makefile
===================================================================
--- attr-2.4.47.orig/libmisc/Makefile
+++ attr-2.4.47/libmisc/Makefile
@@ -20,7 +20,9 @@ TOPDIR = ..
 include $(TOPDIR)/include/builddefs
 
 LTLIBRARY = libmisc.la
-LTLDFLAGS =
+# We must drop the default $(LTLDFLAGS), but still include $(LDFLAGS) for
+# default (hardening) build flags.
+LTLDFLAGS = $(LDFLAGS)
 
 CFILES = quote.c unquote.c high_water_alloc.c next_line.c walk_tree.c