virglrenderer: enable symbol visiblity.

We have to link the gallium la file into the test code

Reviewed-by: Jakob Bornecrantz <jakob@collabora.com>
macos/master
Dave Airlie 6 years ago
parent eaca8c5e2e
commit 6564d1395c
  1. 13
      configure.ac
  2. 2
      tests/Makefile.am
  3. 2
      vtest/Makefile.am

@ -35,6 +35,10 @@ AX_CHECK_COMPILE_FLAG([-Werror=missing-prototypes], [CFLAGS="$CFLAGS
AX_CHECK_COMPILE_FLAG([-Wmissing-prototypes], [CFLAGS="$CFLAGS -Wmissing-prototypes"])
AX_CHECK_COMPILE_FLAG([-Werror=int-to-pointer-cast], [CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"])
AX_GCC_FUNC_ATTRIBUTE([visibility])
AX_CHECK_COMPILE_FLAG([-fvisibility=hidden], [VISIBILITY_CFLAGS="-fvisibility=hidden"])
AC_MSG_CHECKING([for native Win32])
case "$host_os" in
*mingw*|*cygwin*)
@ -145,6 +149,15 @@ AS_IF([test "x$epoxy_has_glx" = "x1" && test "x$enable_glx" != "xno"], [
AM_CONDITIONAL([HAVE_EPOXY_GLX], [test "x$epoxy_has_glx" = "xyes"])
AC_SUBST([DEFINES])
case "$host_os" in
cygwin*)
VISIBILITY_CFLAGS=""
;;
esac
AC_SUBST([VISIBILITY_CFLAGS])
AC_CONFIG_FILES([
virglrenderer.pc
Makefile

@ -4,7 +4,7 @@ if BUILD_TESTS
AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/src/gallium/include $(CHECK_CFLAGS) -I$(top_srcdir)/src/gallium/auxiliary $(DEFINES)
TEST_LIBS = libvrtest.la $(top_builddir)/src/libvirglrenderer.la $(CHECK_LIBS)
TEST_LIBS = libvrtest.la $(top_builddir)/src/gallium/auxiliary/libgallium.la $(top_builddir)/src/libvirglrenderer.la $(CHECK_LIBS)
run_tests = test_virgl_init test_virgl_transfer test_virgl_resource test_virgl_cmd

@ -24,4 +24,4 @@ virgl_test_server_SOURCES = \
vtest_protocol.h \
vtest.h
virgl_test_server_LDADD = $(top_builddir)/src/libvirglrenderer.la
virgl_test_server_LDADD = $(top_builddir)/src/gallium/auxiliary/libgallium.la $(top_builddir)/src/libvirglrenderer.la

Loading…
Cancel
Save