intel / intel-vaapi-driver

VA-API user mode driver for Intel GEN Graphics family
https://01.org/linuxmedia
Other
308 stars 125 forks source link

build: Allow clean build on OpenBSD 6.6. #497

Closed iarebatman closed 4 years ago

iarebatman commented 4 years ago

We don't need to link with -ldl on OpenBSD. Add new check to see if we need to find a libdl before we assume we do.

swap32 is provided by OpenBSD. Use it when available.

jbeich commented 4 years ago

Can you apply -ldl change to autotools build as well? AC_SEARCH_LIBS([dlopen], [dl]) automatically appends -ldl to LIBS, so you can just remove explicit -ldl from *.am files.

Also, --enable-hybrid-codec uses RTLD_NODELETE which is missing on OpenBSD.

uartie commented 4 years ago

No response to reviews from @iarebatman. Closing

Please reopen and update if you plan to address the reviewers.