[gtk-osx] Xcode4+ linker workaround for pre-Lion SDKs
- From: John Ralls <jralls src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-osx] Xcode4+ linker workaround for pre-Lion SDKs
- Date: Fri, 31 Jan 2014 19:49:47 +0000 (UTC)
commit 4c7a06041bb63cd71360c6d8bd1fed17faa6d8f4
Author: John Ralls <jralls ceridwen us>
Date: Tue Jan 28 11:26:11 2014 -0800
Xcode4+ linker workaround for pre-Lion SDKs
jhbuildrc-gtk-osx | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/jhbuildrc-gtk-osx b/jhbuildrc-gtk-osx
index c0a8f47..537a1cc 100644
--- a/jhbuildrc-gtk-osx
+++ b/jhbuildrc-gtk-osx
@@ -376,9 +376,11 @@ def setup_sdk(target, sdk_version, architectures=[_default_arch]):
module_extra_env.update(
{"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'}
+ if xcodeversion >= 4.0 and target in ('10.6', '10.5', '10.4'):
+ environ_append('LDFLAGS',
+ '-Wl,-no_function_starts -Wl,-no_version_load_command')
# Finally when building normally we need to force CFLAGS_FOR_BUILD
# to our current CFLAGS so that everything will link with other
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]