Mesa (master): automake: move GALLIUM_DRI_LIB_DEPS to Automake.inc
Emil Velikov
evelikov at kemper.freedesktop.org
Sat Apr 5 13:08:53 UTC 2014
Module: Mesa
Branch: master
Commit: 16c13aaeb87b296a60fd0898efc20984faf67565
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=16c13aaeb87b296a60fd0898efc20984faf67565
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Tue Apr 1 02:05:57 2014 +0100
automake: move GALLIUM_DRI_LIB_DEPS to Automake.inc
With recent commit we started de-duplicating all of the compiler/
linker flags moving their handling inside Automake.inc.
This did not take into consideration that the above variable was set
at configure time, leading to issues on certain build combinations.
Move the variable to where it's used/handled thus cleaning up
configure.ac.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76848
Tested-by: Vinson Lee <vlee at freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
configure.ac | 3 ---
src/gallium/Automake.inc | 9 +++++++++
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index a154177..0ae332b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1049,12 +1049,9 @@ if test "x$enable_dri" = xyes; then
# put all the necessary libs together
DRI_LIB_DEPS="$DRI_LIB_DEPS $SELINUX_LIBS $LIBDRM_LIBS $EXPAT_LIBS -lm $PTHREAD_LIBS $DLOPEN_LIBS"
- GALLIUM_DRI_LIB_DEPS="$GALLIUM_DRI_LIB_DEPS $SELINUX_LIBS $LIBDRM_LIBS $EXPAT_LIBS -lm $CLOCK_LIB $PTHREAD_LIBS $DLOPEN_LIBS"
-
fi
AC_SUBST([DRI_LIB_DEPS])
-AC_SUBST([GALLIUM_DRI_LIB_DEPS])
DRI_DIRS=''
dnl Duplicates in DRI_DIRS are removed by sorting it at the end of this block
diff --git a/src/gallium/Automake.inc b/src/gallium/Automake.inc
index 56f1433..7504056 100644
--- a/src/gallium/Automake.inc
+++ b/src/gallium/Automake.inc
@@ -86,6 +86,15 @@ GALLIUM_OMX_LINKER_FLAGS = \
$(GC_SECTIONS) \
-Wl,--no-undefined
+GALLIUM_DRI_LIB_DEPS = \
+ $(SELINUX_LIBS) \
+ $(LIBDRM_LIBS) \
+ $(EXPAT_LIBS) \
+ -lm \
+ $(CLOCK_LIB) \
+ $(PTHREAD_LIBS) \
+ $(DLOPEN_LIBS)
+
GALLIUM_VDPAU_LIB_DEPS = \
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
$(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \
More information about the mesa-commit
mailing list