diff --git a/qt/qt4/qt4.conf b/qt/qt4/qt4.conf index fa4c665e0..8ca60fd5d 100644 --- a/qt/qt4/qt4.conf +++ b/qt/qt4/qt4.conf @@ -113,20 +113,20 @@ var_append confopt ' ' "-xmlpatterns" # Add database support for all installed databases. tuples="mysql:mysql postgresql:psql sqlite:sqlite sqlite2:sqlite2" for tuple in $tuples; do - tuplepkg=${tuple#:*} + tuplepkg=${tuple%:*} tupledriver=${tuple#*:} if pkginstalled $tuplepkg; then pkgprefix -t $tuplepkg var_append confopt " " "-plugin-sql-$tupledriver" + for x in CXX GCC; do var_append ${x}_WRAPPER_APPEND ' ' "-L$( pkgprefix libdir $tuplepkg )" done for x in CXX GCC CPP; do var_append ${x}_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir $tuplepkg )" var_append ${x}_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir $tuplepkg )" - done - + done fi done