summaryrefslogtreecommitdiffstats
path: root/debian/patches/0003-Avoid-clobbering-CXX-flags-when-compiling-lua-aho-co.patch
blob: 8d3d869d8d7c48c9a2db4189c64303b1e1fcc6c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Date: Thu, 7 Mar 2019 14:36:33 -0500
Subject: Avoid clobbering CXX flags when compiling lua-aho-corasick

Without this patch, any externally-set CXXFLAGS are not passed through
to the underlying C++ compiler.

---
 modules/policy/policy.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/policy/policy.mk b/modules/policy/policy.mk
index 98c9f88..43964dd 100644
--- a/modules/policy/policy.mk
+++ b/modules/policy/policy.mk
@@ -7,7 +7,7 @@ $(call make_lua_module,policy)
 policy-clean:
 	$(MAKE) -C $(AHOCORASICK_DIR) clean
 $(AHOCORASICK_DIR)ahocorasick$(LIBEXT): $(AHOCORASICK_DIR)Makefile
-	$(MAKE) -C $(AHOCORASICK_DIR) ahocorasick$(LIBEXT) CXXFLAGS="$(lua_CFLAGS)"
+	$(MAKE) -C $(AHOCORASICK_DIR) ahocorasick$(LIBEXT) CXXFLAGS="$(lua_CFLAGS) $(CXXFLAGS)"
 
 policy-install: ahocorasick-install
 ahocorasick-install: $(AHOCORASICK_DIR)ahocorasick$(LIBEXT) $(DESTDIR)$(MODULEDIR)