mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Use CFLAGS and LDFLAGS env vars when building the launcher as well
Fixes #374
This commit is contained in:
parent
fc9980903d
commit
0b1f5209d5
1 changed files with 3 additions and 1 deletions
4
setup.py
4
setup.py
|
|
@ -486,10 +486,12 @@ def build_linux_launcher(args, launcher_dir='.', for_bundle=False, sh_launcher=F
|
|||
cflags.append('-DFOR_LAUNCHER')
|
||||
pylib = get_python_flags(cflags)
|
||||
exe = 'kitty-profile' if args.profile else 'kitty'
|
||||
cflags += shlex.split(os.environ.get('CFLAGS', ''))
|
||||
ldflags = shlex.split(os.environ.get('LDFLAGS', ''))
|
||||
cmd = [env.cc] + cflags + [
|
||||
'linux-launcher.c', '-o',
|
||||
os.path.join(launcher_dir, exe)
|
||||
] + libs + pylib
|
||||
] + ldflags + libs + pylib
|
||||
run_tool(cmd)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue