File: use-dpkg-buildflags.patch

package info (click to toggle)
epcr 2.3.12-1-9
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 916 kB
  • sloc: cpp: 5,730; ansic: 231; makefile: 31; python: 26; sh: 12
file content (16 lines) | stat: -rw-r--r-- 526 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Use build flags from environment (dpkg-buildflags).
 Necessary for hardening flags.
Author: Andreas Tille <tille@debian.org>
Last-Update: 2012-04-25

--- e-PCR-2.3.12.orig/stand/config.mk
+++ e-PCR-2.3.12/stand/config.mk
@@ -104,7 +104,7 @@
 	-test -L $(LIBNAME) && rm $(LIBNAME)
 
 $(objdir)/%.o: $(srcdir)/%.cpp
-	$(CXX) $(CXXFLAGS) -c $< -o $@
+	$(CXX) $(CPPFLAGS) $(CFLAGS) $(CXXFLAGS) $(LDFLAGS) -c $< -o $@
 
 ########################################################################
 ## $Log: config.mk,v $