Package: powerline / 1.2-2

add_powerline_compile_flags.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Adds CPPFLAGS and LDFLAGS to scripts/powerline compiler
Author: Jerome Charaoui <jerome@riseup.net>
Forwarded: not-needed
diff --git a/setup.py b/setup.py
index dfe8838..009f6ee 100644
--- a/setup.py
+++ b/setup.py
@@ -27,7 +27,7 @@ def compile_client():
 	else:
 		from distutils.ccompiler import new_compiler
 		compiler = new_compiler().compiler
-		subprocess.check_call(compiler + ['-O3', 'client/powerline.c', '-o', 'scripts/powerline'])
+		subprocess.check_call(compiler + os.environ["CPPFLAGS"].split() + os.environ["LDFLAGS"].split() + ['-O3', 'client/powerline.c', '-o', 'scripts/powerline'])
 
 try:
 	compile_client()