shared-glapi: fix a linking error for SELinux
authorChia-I Wu <olvaffe@gmail.com>
Fri, 4 Nov 2011 08:32:17 +0000 (16:32 +0800)
committerChia-I Wu <olvaffe@gmail.com>
Sat, 5 Nov 2011 06:42:05 +0000 (14:42 +0800)
Link with -lselinux when SELinux is enabled.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41571

configure.ac

index 30b3b96c30e944a5474728d0150718c061096393..707acf3cf45fdcd5e2a6d2582d22057384371d60 100644 (file)
@@ -1052,7 +1052,7 @@ AC_SUBST([GLESv1_CM_PC_LIB_PRIV])
 AC_SUBST([GLESv2_LIB_DEPS])
 AC_SUBST([GLESv2_PC_LIB_PRIV])
 
-GLAPI_LIB_DEPS="-lpthread"
+GLAPI_LIB_DEPS="-lpthread $SELINUX_LIBS"
 AC_SUBST([GLAPI_LIB_DEPS])