Skip to content

Commit

Permalink
libpq: disable zlib when cross-building
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Mar 27, 2024
1 parent 2332503 commit a363fae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion recipes/libpq/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from conan import ConanFile
from conan.tools.apple import fix_apple_shared_install_name
from conan.tools.apple import fix_apple_shared_install_name, is_apple_os
from conan.tools.build import cross_building
from conan.tools.env import Environment, VirtualBuildEnv, VirtualRunEnv
from conan.tools.files import apply_conandata_patches, chdir, copy, export_conandata_patches, get, replace_in_file, rm, rmdir
Expand Down Expand Up @@ -60,6 +60,10 @@ def config_options(self):
# TODO: add Windows support for these
del self.options.with_icu
del self.options.with_zlib
if is_apple_os(self) and cross_building(self):
# FIXME: not sure why this one fails when cross-building on macOS
# zlib symbols are not found when linking
del self.options.with_zlib

def configure(self):
if self.options.shared:
Expand Down

0 comments on commit a363fae

Please sign in to comment.