1
0
Fork 0
powerline/debian/patches/0003-add_powerline_compile_flags.patch
Daniel Baumann 4e7b24e893
Adding debian version 2.8.4-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 14:32:14 +02:00

20 lines
946 B
Diff

Author: Jerome Charaoui <jerome@riseup.net>
Description: Adds CPPFLAGS and LDFLAGS to scripts/powerline compiler
Forwarded: not-needed
diff -Naurp powerline.orig/setup.py powerline/setup.py
--- powerline.orig/setup.py
+++ powerline/setup.py
@@ -30,9 +30,11 @@ def compile_client():
from distutils.ccompiler import new_compiler
compiler = new_compiler().compiler
cflags = os.environ.get('CFLAGS', str('-O3'))
+ ldflags = os.environ.get('LDFLAGS', '')
+ cppflags = os.environ.get('CPPFLAGS', '')
# A normal split would do a split on each space which might be incorrect. The
# shlex will not split if a space occurs in an arguments value.
- subprocess.check_call(compiler + shlex.split(cflags) + ['client/powerline.c', '-o', 'scripts/powerline'])
+ subprocess.check_call(compiler + shlex.split(cflags) + shlex.split(ldflags) + shlex.split(cppflags) + ['client/powerline.c', '-o', 'scripts/powerline'])
try:
compile_client()