summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2015-11-24 15:19:02 +0100
committerEdward Hervey <bilboed@bilboed.com>2015-11-24 15:19:02 +0100
commit6faa9926272b91405cd2441fdc6f3c899c46be8c (patch)
tree680c9bb59b26671646ab5b71232b8f05e8d89171
parenta54dd56f6e02ee4f054b149c1a699f31ea1d3203 (diff)
gobject-introspection: Fix OSX build
By default the compilation system used by gobject-introspection (which is the python distutils compiler system) will create "universal" builds. We don't need that for g-ir-scanner
-rw-r--r--recipes/gobject-introspection.recipe3
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes/gobject-introspection.recipe b/recipes/gobject-introspection.recipe
index 1e10feb8..ce8191aa 100644
--- a/recipes/gobject-introspection.recipe
+++ b/recipes/gobject-introspection.recipe
@@ -79,6 +79,9 @@ class Recipe(recipe.Recipe):
# the full path needs to be specified, since shebangs are generated
if self.config.target_distro == Distro.ARCH:
self.config_sh = "PYTHON=/usr/bin/python2 %s" % self.config_sh
+ # on OSX specify which architecture we want
+ if self.config.target_platform in [Platform.DARWIN]:
+ self.new_env['ARCHFLAGS'] = '-arch %s' % self.config.target_arch
# TODO: catch the share/man stuff like man1/g-ir* ?
def configure(self):