i-rinat / libvdpau-va-gl

VDPAU driver with OpenGL/VAAPI backend
MIT License
161 stars 26 forks source link

Unbreak building tests on BSD systems #66

Closed jbeich closed 7 years ago

jbeich commented 7 years ago
$ make check
[...]
[ 44%] Linking C executable test-006
cd tests && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/test-006.dir/link.txt --verbose=1
/usr/bin/cc   -pthread -std=gnu99   CMakeFiles/test-006.dir/test-006.c.o CMakeFiles/test-006.dir/tests-common.c.o  -o test-006 -Wl,-rpath,/usr/local/lib /usr/local/lib/libX11.so -ldl
/usr/bin/ld: cannot find -ldl
cc: error: linker command failed with exit code 1 (use -v to see invocation)
i-rinat commented 7 years ago

Looks good. Thanks!

i-rinat commented 7 years ago

Out of curiosity, what value CMAKE_DL_LIBS has on your machine?

jbeich commented 7 years ago

CMAKE_DL_LIBS is empty here. dlopen() and friends are provided by libc.