aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'conform/linknamespace.py')
-rw-r--r--conform/linknamespace.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/conform/linknamespace.py b/conform/linknamespace.py
index 1d27e4cfba..b0d2b9bbc2 100644
--- a/conform/linknamespace.py
+++ b/conform/linknamespace.py
@@ -157,7 +157,9 @@ def main():
files_seen = set()
all_undef = {}
current_undef = {}
- compiler = '%s %s' % (args.cc, args.flags)
+ # -O0 avoid failures like
+ # '[initial] ptsname_r -> [libc.a(ptsname.o)] ptsname'
+ compiler = '%s %s -O0' % (args.cc, args.flags)
c_syms = glibcconform.list_exported_functions(compiler, args.standard,
args.header)
with tempfile.TemporaryDirectory() as temp_dir: