summaryrefslogtreecommitdiff
path: root/recipes/build-tools
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/build-tools')
-rw-r--r--recipes/build-tools/cargo-c.recipe5
1 files changed, 5 insertions, 0 deletions
diff --git a/recipes/build-tools/cargo-c.recipe b/recipes/build-tools/cargo-c.recipe
index a1bb1e69..875e16c5 100644
--- a/recipes/build-tools/cargo-c.recipe
+++ b/recipes/build-tools/cargo-c.recipe
@@ -23,3 +23,8 @@ class Recipe(recipe.Recipe):
}
files_bins = ['cargo-capi', 'cargo-cbuild', 'cargo-cinstall', 'cargo-ctest']
+
+ def prepare(self):
+ if self.config.platform == Platform.DARWIN:
+ self.set_env('OPENSSL_LIB_DIR', self.config.libdir)
+ self.set_env('OPENSSL_INCLUDE_DIR', os.path.join(self.config.prefix, 'include'))