mirror of
https://github.com/facebook/proxygen.git
synced 2025-08-07 07:02:53 +03:00
fbcode_builder: getdeps: fboss: extend iproute2 builder to copy lib/*
Summary: D15588809 introduced manifest and customer builder for iproute2. While the Iproute2Builder copies include/* from build to install directory, it does not copy lib/* which contains the libnetlink.a As a result, the build system looks up libnetlink.a on local machine (which it may not find). Fix it by explicitly coping lib/* as well. Reviewed By: wez Differential Revision: D15708835 fbshipit-source-id: 3f5906eb48ce982b6e887cca0d3c11314425beab
This commit is contained in:
committed by
Facebook Github Bot
parent
3af0ced002
commit
5615773803
@@ -225,10 +225,11 @@ class Iproute2Builder(BuilderBase):
|
||||
self._patch()
|
||||
self._run_cmd(["make", "-j%s" % self.build_opts.num_jobs], env=env)
|
||||
install_cmd = ["make", "install", "DESTDIR=" + self.inst_dir]
|
||||
if not os.path.isdir(os.path.join(self.inst_dir, "include")):
|
||||
|
||||
for d in ["include", "lib"]:
|
||||
if not os.path.isdir(os.path.join(self.inst_dir, d)):
|
||||
shutil.copytree(
|
||||
os.path.join(self.build_dir, "include"),
|
||||
os.path.join(self.inst_dir, "include"),
|
||||
os.path.join(self.build_dir, d), os.path.join(self.inst_dir, d)
|
||||
)
|
||||
|
||||
self._run_cmd(install_cmd, env=env)
|
||||
|
Reference in New Issue
Block a user