Make sure to use our internal functions. In particular, we override
some DRM functions and they have to be used. e.g. this fixes VA/GLX.
SUBDIRS = shaders
INCLUDES = \
- -Wall \
-I$(top_srcdir) \
-I$(top_srcdir)/va \
-I$(top_srcdir)/va/x11 \
$(DRM_CFLAGS) \
$(NULL)
+driver_cflags = \
+ -Wall \
+ -fvisibility=hidden \
+ $(NULL)
+
driver_ldflags = \
-module -avoid-version \
-no-undefined \
i965_drv_video_la_LTLIBRARIES = i965_drv_video.la
i965_drv_video_ladir = $(LIBVA_DRIVERS_PATH)
+i965_drv_video_la_CFLAGS = $(driver_cflags)
i965_drv_video_la_LDFLAGS = $(driver_ldflags)
i965_drv_video_la_LIBADD = $(top_builddir)/va/libva-x11.la -lpthread
i965_drv_video_la_SOURCES = $(source_c)
return vaStatus;
}
+VAStatus DLL_EXPORT
+VA_DRIVER_INIT_FUNC(VADriverContextP ctx);
+
VAStatus
VA_DRIVER_INIT_FUNC( VADriverContextP ctx )
{
# define INLINE
#endif
+/**
+ * Function visibility
+ */
+#if defined(__GNUC__)
+# define DLL_HIDDEN __attribute__((visibility("hidden")))
+# define DLL_EXPORT __attribute__((visibility("default")))
+#else
+# define DLL_HIDDEN
+# define DLL_EXPORT
+#endif
+
#endif /* _INTEL_COMPILER_H_ */