diff --git a/configure b/configure
index 57630f2a5350f2c1cc84167d543e345fa885e0f2..a0dc6e08f86221dca8adc02d5cb11564d5edb77d 100755
--- a/configure
+++ b/configure
@@ -3002,7 +3002,7 @@ check_func XFixesGetCursorImage -lX11 -lXext -lXfixes
 
 # check for VDA header
 if ! disabled vda && check_header VideoDecodeAcceleration/VDADecoder.h; then
-    enable vda && add_ldflags -framework CoreFoundation -framework VideoDecodeAcceleration -framework QuartzCore
+    enable vda && add_extralibs -framework CoreFoundation -framework VideoDecodeAcceleration -framework QuartzCore
 fi
 
 if ! disabled vdpau && enabled vdpau_vdpau_h; then