I'm building a library with qmake that should not depend on Qt at runtime. It does however contain some inline code that uses QString, and also uses Q_OS_XXX for platform detection.

The generated library does not import any symbols from Qt (I have checked with nm). The generated PRL file however pulls in QtCore.

If I add "QT -= core" to the project file, obviously compilation no longer works.

Is there any way to influence what gets written into the PRL file?