Cant fucking link blender even though ffmpeg is shared

[100%] Building C object source/creator/CMakeFiles/blender.dir/buildinfo.c.o
Linking CXX executable …/…/bin/blender
…/…/lib/libbf_intern_audaspace.a(AUD_FFMPEGWriter.cpp.o):AUD_FFMPEGWriter.cpp:function AUD_FFMPEGWriter::AUD_FFMPEGWriter(std::basic_string<char, std::char_traits<char>, std::allocator<char> >, AUD_DeviceSpecs, AUD_Container, AUD_Codec, unsigned int): error: undefined reference to ‘avformat_alloc_output_context2’
collect2: ld returned 1 exit status
make[3]: *** [bin/blender] Error 1
make[2]: *** [source/creator/CMakeFiles/blender.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2
~/stuff/blender$

WHAT THE FUCK IS THIS?

Downloads/ffmpeg-0.10.2$ CFLAGS=-fPIC ./configure --enable-shared --prefix=/usr/local
(make make install)

Can you tell me what the FUCK this is?