Skip to content

Commit 6ddda26

Browse files
afrindmeta-codesync[bot]
authored andcommitted
Auto-inject --disable-shared for autoconf builders
Summary: X-link: facebook/folly#2585 When shared_libs is off, automatically pass --disable-shared to autoconf-based builds so they don't produce .so files. This avoids needing to add this flag individually to every autoconf manifest. Reviewed By: bigfootjon Differential Revision: D93644457 fbshipit-source-id: 98a8478d9d059df586777f6edf4093194e721317
1 parent 712abfe commit 6ddda26

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build/fbcode_builder/getdeps/builder.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,8 @@ def __init__(
426426
inst_dir,
427427
)
428428
self.args = args or []
429+
if not build_opts.shared_libs and "--disable-shared" not in self.args:
430+
self.args.append("--disable-shared")
429431
self.conf_env_args = conf_env_args or {}
430432

431433
@property

0 commit comments

Comments
 (0)