summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2015-11-24 15:19:02 +0100
committerSebastian Dröge <sebastian@centricular.com>2015-12-01 15:11:11 +0200
commita23bf1a78cdc57baa9187a025c7333339a184318 (patch)
tree60550628e9af429584c167dbe8d9140c05eead20
parent9ed0d23e97b32b609247d58d6d452c5fa7780341 (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 89faf22e..b8b0b82c 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):