$NetBSD: patch-ag,v 1.12 2010/11/15 13:05:45 adam Exp $

--- qmake/project.cpp.orig	2010-09-10 09:04:41.000000000 +0000
+++ qmake/project.cpp
@@ -1534,6 +1534,9 @@ QMakeProject::isActiveConfig(const QStri
         return Option::target_mode == Option::TARG_WIN_MODE;
     }
 
+    if(x == "compile_libtool" && (vars["TEMPLATE"].first() == "app" || vars["TEMPLATE"].first() == "lib"))
+        return true;
+
     //mkspecs
     static QString spec;
     if(spec.isEmpty())
