OSDN Git Service

i965_drv: fix building with --enable-static
authorAman Gupta <aman@tmm1.net>
Thu, 2 Feb 2017 17:42:09 +0000 (09:42 -0800)
committerAman Gupta <aman@tmm1.net>
Thu, 2 Feb 2017 19:58:23 +0000 (11:58 -0800)
commit592365c1181ee105acb61d8ee05ca49ab12f1b36
tree7d4b1432338ce1e9116bbae096227f363ad2e8a2
parent2d2be8cf1210d57a4ff1b7b1e12143dee2983a83
i965_drv: fix building with --enable-static

Avoids compiling some unnecessary code in i965_Terminate when
building without HAVE_HYBRID_CODEC.

In particular, this removes the invocation to dlclose(), which
means the driver can be compiled without a dependency on libdl.
Previously, the generated libi965_drv_video.a could not be used
statically because it referenced dlclose(). The corresponding
dlopen() is already guarded behind the HAVE_HYBRID_CODEC flag.

Fixes #27

Signed-off-by: Aman Gupta <aman@tmm1.net>
src/i965_drv_video.c