Have you tried the LIBS variable? You might have to say qmake LIBS="-rpath foo" or something if it doesn't look at environment variables, or worst case patch the project file. I got this from http://doc.trolltech.com/3.3/qmake-manual-8.html.