libpq: reorder build targets so that pg_config is built first (#26352)

This commit is contained in:
Xuan Guo
2025-03-04 09:40:48 +00:00
committed by GitHub
parent f881dd1549
commit 0cd2b13c13

View File

@ -188,13 +188,14 @@ class LibpqConan(ConanFile):
autotools.make()
with chdir(self, os.path.join(self.build_folder, "src", "include")):
autotools.make()
with chdir(self, os.path.join(self.build_folder, "src", "bin", "pg_config")):
autotools.make()
with chdir(self, os.path.join(self.build_folder, "src", "interfaces", "libpq")):
autotools.make()
if Version(self.version) >= 12:
with chdir(self, os.path.join(self.build_folder, "src", "port")):
autotools.make()
with chdir(self, os.path.join(self.build_folder, "src", "bin", "pg_config")):
autotools.make()
def _remove_unused_libraries_from_package(self):
bin_folder = os.path.join(self.package_folder, "bin")