title: Qt Creator or qmake on MacOSX build library as ".so" not dylib
body: <p>I need to build my plugin/library as a .so on Mac. That happens without extra trick on Linux and works like a charm.</p>
  
  <p>What extra options I need to add to my .pro file?</p>
  
  <pre><code>CONFIG += debug
  QT += xml
  TEMPLATE = lib
  TARGET = mylib
  DEPENDPATH += .
  macx:INCLUDEPATH += ../../../Test \
    /usr/local/include/
  
  macx:LIBS += -L../../../Test/lib
  
  DEFINES += CORE_EXPORT=
  DEFINES += GUI_EXPORT=
  
  HEADERS += test.h testGui.h
  FORMS += testGui.ui
  SOURCES += test.cpp testGui.cpp
  RESOURCES += test.qrc
  </code></pre>