diff --git a/src/plugins/imageformats/macjp2/macjp2.pro b/src/plugins/imageformats/macjp2/macjp2.pro
index d7ece1b439edfb4ba676d1dc9cbf4667d7d4cf33..66aafb4508da8149ca1e9db3b9566e15bd501b79 100644
--- a/src/plugins/imageformats/macjp2/macjp2.pro
+++ b/src/plugins/imageformats/macjp2/macjp2.pro
@@ -2,9 +2,9 @@ TARGET  = qmacjp2
 PLUGIN_TYPE = imageformats
 PLUGIN_CLASS_NAME = QMacJp2Plugin
 
-LIBS += -framework CoreFoundation -framework ImageIO
+LIBS += -framework CoreFoundation -framework CoreGraphics -framework ImageIO
 
-QT += core-private gui-private platformsupport-private
+QT += core-private gui-private
 
 SOURCES += \
     qmacjp2handler.cpp \