I'm trying to build a library that includes some Qt4 bits, so I'm using qmake with the "TEMPLATE = lib" setting. The problem is, it automatically generates a --no-undefined option for the linker, as shown in this line from the Makefile:
Qt Code:
  1. LFLAGS = -Wl,--no-undefined -shared -Wl,-soname,libdm.so.1
To copy to clipboard, switch view to plain text mode 
However, as I'm linking in some other libraries, it spits out a load of "undefined reference" errors. If I manually remove the "-Wl,--no-undefined" bit from the Makefile, it all builds and links fine.

Is there a way of removing "--no-undefined" using the .pro file, rather than editing the generated Makefile?