Author: Jerome Charaoui 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()