Should I be able to compile ffmpeg against cuda static libraries using 10.0-devel-ubuntu18.04?

Hi folks,

I’m trying to compile a static binary of ffmpeg, using a nvidia/cuda:10.0-devel-ubuntu18.04 docker image.

I can successfully compile a dynamically-linked version, using:

--extra-cflags="-I/usr/local/cuda/include/" \

But when I try to compile statically, with the arguments below…

--extra-cflags="-I/usr/local/cuda/include/ --static" \
--extra-ldflags="-L/usr/local/cuda/lib64/ --static"

Then ./configure fails with:

ERROR: cuda_sdk not found says that the “devel” tag includes static headers, should I have expected this compile to work, or am I missing something?