summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2021-11-21 09:10:18 -0500
committerMatt A. Tobin <email@mattatobin.com>2021-11-21 09:10:18 -0500
commit3021e018815bf8dde23fb71af829fa6fe80879ff (patch)
tree36258503765fa4cff51387df4533af0d87b81ce6 /python
parent5d91911226a3a80cd0e456d2e58e7ce1e330e3d9 (diff)
downloadaura-central-3021e018815bf8dde23fb71af829fa6fe80879ff.tar.gz
[NSS/GYP] Teach this thing to not ignore ldflags for SunOS
Diffstat (limited to 'python')
-rw-r--r--python/mozbuild/mozbuild/frontend/gyp_reader.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/mozbuild/mozbuild/frontend/gyp_reader.py b/python/mozbuild/mozbuild/frontend/gyp_reader.py
index ef24c0dc4..e6d260703 100644
--- a/python/mozbuild/mozbuild/frontend/gyp_reader.py
+++ b/python/mozbuild/mozbuild/frontend/gyp_reader.py
@@ -319,6 +319,8 @@ def read_from_gyp(config, path, output, vars, no_chromium, no_unified, action_ov
context['ASFLAGS'] = target_conf.get('asflags_mozilla', [])
if use_defines_in_asflags and defines:
context['ASFLAGS'] += ['-D' + d for d in defines]
+ if config.substs['OS_TARGET'] == 'SunOS':
+ context['LDFLAGS'] = target_conf.get('ldflags', [])
flags = target_conf.get('cflags_mozilla', [])
if flags:
suffix_map = {