diff --git a/src/plugins/platforms/cocoa/cocoa.pro b/src/plugins/platforms/cocoa/cocoa.pro
index 5ff494aba6..62f66ff50e 100644
--- a/src/plugins/platforms/cocoa/cocoa.pro
+++ b/src/plugins/platforms/cocoa/cocoa.pro
@@ -23,11 +23,8 @@ HEADERS += qcocoaintegration.h \
     qcocoanativeinterface.h \
     qcocoaeventdispatcher.h
 
-DEFINES += QT_BUILD_COCOA_LIB
-
 #add libz for freetype.
 LIBS += -lz
-LIBS += -framework cocoa -framework Carbon
 
 QT += core-private gui-private platformsupport-private