On Thu, Oct 09, 2008 at 10:26:49PM +0200, Jean-Marc Lasgouttes wrote: > > Maybe you are right. I simply didn't find a way for having a #define > > transferred in the .pc files by simply acting on qmake.conf and didn't > > want to have a post-install patch. I think it's now time to try to > > directly patch the code that generates the .pc files. > > Looking at the mac code would probably be a good start.
That didn't help, but looking at the code I saw that the contents of PRL_EXPORT_DEFINES get output to pkg-config files. So, adding the line cygwin-g++-win32:PRL_EXPORT_DEFINES += Q_CYGWIN_WIN to qbase.pri did the trick! -- Enrico