From dccb752b5ff5beadc750a83fe58ce6ea6d49b373 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 30 Jan 2017 09:34:10 +0100 Subject: build: fix --disable-gl if cuda is enabled video/out/opengl/hwdec_cuda.c is enabled with cuda-hwaccel. But it makes only sense to build if GL is enabled, and in fact it fails to link without GL as it calls a specific GL helper function. In theory it would be perfectly possible to use cuda-copy with GL disabled. But I'm not bothering with the complexity. --- wscript | 1 + 1 file changed, 1 insertion(+) diff --git a/wscript b/wscript index 789baae4a2..2cddc830d7 100644 --- a/wscript +++ b/wscript @@ -850,6 +850,7 @@ hwaccel_features = [ }, { 'name': '--cuda-hwaccel', 'desc': 'CUDA hwaccel', + 'deps': [ 'gl' ], 'func': check_cc(fragment=load_fragment('cuda.c'), use='libav'), }, { -- cgit v1.2.3