Commits

Jérôme Berger committed baa27fb

Check for the KDE libs in C++ mode instead of C mode.

Comments (0)

Files changed (1)

scons_local/KDE3.py

         return False
 
     env.PrependUnique (LIBPATH = os.path.join (qtdir, "lib"))
-    if context.sconf.CheckLib ("qt-mt"):
+    if context.sconf.CheckLib ("qt-mt", language = "C++"):
         env["QT_LIB"] = "qt-mt"
         env.Append (CPPDEFINES = "QT_THREAD_SUPPORT")
     else:
     env.Tool ("qt")
 
     env.PrependUnique (LIBPATH = os.path.join (kdeprefix, "lib"))
-    if not context.sconf.CheckLib ("kdecore"):
+    if not context.sconf.CheckLib ("kdecore", language = "C++"):
         return False
     env.PrependUnique (LIBS = "kdecore")