[Mesa-dev] [PATCH 1/3] configure.ac: add -no-undefined to classic drivers
Marek Olšák
maraeo at gmail.com
Mon Oct 7 04:05:13 PDT 2013
From: Marek Olšák <marek.olsak at amd.com>
Undefined symbol references should cause a linker error.
All gallium drivers use this.
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index 9546163..559c9a3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1033,7 +1033,7 @@ if test "x$enable_dri" = xyes; then
DRI_LIB_DEPS="$DRI_LIB_DEPS $SELINUX_LIBS $LIBDRM_LIBS $EXPAT_LIB -lm $PTHREAD_LIBS $DLOPEN_LIBS"
GALLIUM_DRI_LIB_DEPS="$GALLIUM_DRI_LIB_DEPS $SELINUX_LIBS $LIBDRM_LIBS $EXPAT_LIB -lm $CLOCK_LIB $PTHREAD_LIBS $DLOPEN_LIBS"
- DRI_DRIVER_LDFLAGS="-module -avoid-version -shared -Wl,-Bsymbolic"
+ DRI_DRIVER_LDFLAGS="-module -avoid-version -shared -no-undefined -Wl,-Bsymbolic"
fi
AM_CONDITIONAL(NEED_LIBDRICORE, test -n "$DRI_DIRS")
AC_SUBST([EXPAT_INCLUDES])
--
1.8.1.2
More information about the mesa-dev
mailing list