[gtk-osx] Fix wrong -std flag passed to clang for pkg-config
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-osx] Fix wrong -std flag passed to clang for pkg-config
- Date: Tue, 17 Dec 2013 20:08:46 +0000 (UTC)
commit fb44657e6f2cecaac2e77f866131c30dce2e3868
Author: John Ralls <jralls ceridwen us>
Date: Tue Dec 17 12:08:31 2013 -0800
Fix wrong -std flag passed to clang for pkg-config
jhbuildrc-gtk-osx | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/jhbuildrc-gtk-osx b/jhbuildrc-gtk-osx
index fd221f8..ee1ad50 100644
--- a/jhbuildrc-gtk-osx
+++ b/jhbuildrc-gtk-osx
@@ -366,12 +366,13 @@ def setup_sdk(target, sdk_version, architectures=[_default_arch]):
{"perl-xml-simple":{"ARCHFLAGS":"-arch i386 -arch x86_64"},
"perl-xml-parser":{"ARCHFLAGS":"-arch i386 -arch x86_64"}})
+ if xcodeversion >= 5.0:
+ module_extra_env["pkg-config"] = {'CFLAGS': os.environ['CFLAGS'] + ' -std=gnu89'}
+
# Finally when building normally we need to force CFLAGS_FOR_BUILD
# to our current CFLAGS so that everything will link with other
# build products. Note that this will generally break
# cross-compilation, not that it works anyway.
- if xcodeversion >= 5.0:
- module_extra_env["pkg-config"] = {'CFLAGS': os.environ['CFLAGS'] + ' --std=gcc89'}
os.environ['CFLAGS_FOR_BUILD'] = os.environ['CFLAGS']
return sdkdir
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]