[PyQt] configure.py: fix detection of shared libs
    Giovanni Bajo 
    rasky at develer.com
       
    Thu Jun 28 01:44:50 BST 2007
    
    
  
Hello,
Without this patch, I can't compile PyQt4 on Windows anymore against a shared 
build of Qt:
Index: configure.py
===================================================================
--- configure.py        (revision 13265)
+++ configure.py        (working copy)
@@ -1512,7 +1512,7 @@
      out << QLibraryInfo::location(QLibraryInfo::DataPath) << '\\n';
      out << QLibraryInfo::location(QLibraryInfo::PluginsPath) << '\\n';
-#if defined(QT_SHARED)
+#if defined(QT_DLL)
      out << "shared\\n";
  #else
      out << "\\n";
QT_SHARED appears once or twice in Qt headers (probably a leftover?). QT_DLL 
is the real macro that should be used here. An excerpt of the top of 
src/corelib/qconfig.h after "configure.exe -static":
===========================
/* Everything */
===========================
and when using shared:
===========================
/* Everything */
#ifndef QT_DLL
#define QT_DLL
#endif
===========================
-- 
Giovanni Bajo
    
    
More information about the PyQt
mailing list