$NetBSD: patch-ag,v 1.14 2012/01/12 22:59:58 adam Exp $

--- qmake/project.cpp.orig	2010-09-10 09:04:41.000000000 +0000
+++ qmake/project.cpp
@@ -1555,6 +1555,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())
