changeset 5372:6d541cf1792e

darwin::cross/gcc: build obcj and obc-c++ compilers too.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Tue, 21 Jul 2009 21:56:12 +0200
parents 5f7485bde75f
children 48e8462be80e
files gub/specs/darwin/cross/gcc.py
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gub/specs/darwin/cross/gcc.py	Tue Jul 21 21:55:40 2009 +0200
+++ b/gub/specs/darwin/cross/gcc.py	Tue Jul 21 21:56:12 2009 +0200
@@ -13,8 +13,17 @@
 
         self.file_sub ([('--strip-underscores', '--strip-underscore')],
                        '%(srcdir)s/libstdc++-v3/scripts/make_exports.pl')
+    def languages (self):
+        # objective-c is used for quartz's Carbon/Carbon.h in pango, gtk+
+        return gcc.Gcc.languages (self) + ['objc', 'obj-c++']
     def rewire_gcc_libs (self):
-        skip_libs = ['libgcc_s']
+        # FIXME: why do we skip, please document?
+        # I get
+        '''
+/home/janneke/vc/gub/target/darwin-x86/root/usr/cross/bin/i686-apple-darwin8-ld: warning can't open dynamic library: /home/janneke/vc/gub/target/darwin-x86/root/home/janneke/vc/gub/target/darwin-x86/root/usr/cross/i686-apple-darwin8/lib/libgcc_s.1.dylib referenced from: /home/janneke/vc/gub/target/darwin-x86/root/usr/lib/libstdc++.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2)
+'''
+        # let's try adding libstdc++.dylib?, nah, let's not
+        skip_libs = ['libgcc_s'] #, 'libstdc++']
 
         def rewire_one (logger, file):
             found_skips = [s for s in skip_libs if file.find (s) >= 0]