configure: Add vda libs to extralibs instead of ldflags

Message ID 1321444130-4617-1-git-send-email-martin@martin.st
State Committed
Commit be1e872582c861873bd9ca8c1098da55f41bced4
Headers show

Commit Message

Martin Storsjö Nov. 16, 2011, 11:48 a.m.
All other external libraries are added to extralibs instead of
ldflags.
---
 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Luca Barbato Nov. 16, 2011, 12:08 p.m. | #1
On 11/16/11 12:48 PM, Martin Storsjö wrote:
> All other external libraries are added to extralibs instead of
> ldflags.

Not sure which is better. I was even tempted to move them to cflags.

lu

Patch

diff --git a/configure b/configure
index 6e4259f..23a483e 100755
--- a/configure
+++ b/configure
@@ -2994,7 +2994,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