From: Stefan Bund Date: Tue, 19 Oct 2010 10:46:08 +0000 (+0200) Subject: User 'FRAMEWORKS' instead of 'LIBS' on darwin (macosx) X-Git-Url: http://g0dil.de/git?p=qtscons.git;a=commitdiff_plain;h=d2af983e689640420972f36d446dab0ed0c2e22e User 'FRAMEWORKS' instead of 'LIBS' on darwin (macosx) --- diff --git a/qt4.py b/qt4.py index d2cef9d..e91702b 100644 --- a/qt4.py +++ b/qt4.py @@ -470,8 +470,12 @@ def enable_modules(self, modules, debug=False, crosscompiling=False) : if sys.platform in ["darwin", "linux2"] and not crosscompiling : if debug : debugSuffix = '_debug' for module in modules : - self.AppendUnique(LIBS=[module+debugSuffix]) - self.AppendUnique(LIBPATH=[os.path.join("$QTDIR","lib")]) + if sys.platform == "darwin": + self.AppendUnique(FRAMEWORKS=[module+debugSuffix]) + self.AppendUnique(FRAMEWORKPATH=[os.path.join("$QTDIR","lib")]) + else: + self.AppendUnique(LIBS=[module+debugSuffix]) + self.AppendUnique(LIBPATH=[os.path.join("$QTDIR","lib")]) self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include","qt4")]) self.AppendUnique(CPPPATH=[os.path.join("$QTDIR","include","qt4",module)]) if 'QtDBus' in modules: