Bug 1698706 - Fix linux build bustage. a=bustage-fix CLOSED TREE

This commit is contained in:
Mike Hommey 2021-03-17 10:23:21 +02:00
parent c546aae9a0
commit fd54149a7a

View File

@ -29,7 +29,7 @@ for v in ("OS_CPPFLAGS", "OS_CFLAGS", "DEBUG", "CLANG_PLUGIN", "OPTIMIZE", "FRAM
for flag in COMPILE_FLAGS[v]:
if flag == "-isystem":
flags.append("".join(COMPILE_FLAGS[v][idx : idx + 2]))
elif flag.startswith(("-m", "-I", "-isystem")):
elif flag.startswith(("-m", "-I", "-isystem")) or flag == "-fPIC":
flags.append(flag)
idx += 1
COMPILE_FLAGS[v] = flags