$(GC_SECTIONS) \
-Wl,--no-undefined
-GALLIUM_DRI_LIB_DEPS = \
- $(SELINUX_LIBS) \
- $(LIBDRM_LIBS) \
- $(EXPAT_LIBS) \
+GALLIUM_COMMON_LIB_DEPS = \
-lm \
$(CLOCK_LIB) \
$(PTHREAD_LIBS) \
$(DLOPEN_LIBS)
+GALLIUM_DRI_LIB_DEPS = \
+ $(SELINUX_LIBS) \
+ $(LIBDRM_LIBS) \
+ $(EXPAT_LIBS) \
+ $(GALLIUM_COMMON_LIB_DEPS)
+
GALLIUM_VDPAU_LIB_DEPS = \
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
$(top_builddir)/src/gallium/state_trackers/vdpau/libvdpautracker.la \
$(VDPAU_LIBS) \
$(LIBDRM_LIBS) \
- -lm \
- $(CLOCK_LIB) \
- $(PTHREAD_LIBS) \
- $(DLOPEN_LIBS)
+ $(GALLIUM_COMMON_LIB_DEPS)
GALLIUM_XVMC_LIB_DEPS = \
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
$(top_builddir)/src/gallium/state_trackers/egl/libegl.la \
$(top_builddir)/src/egl/main/libEGL.la \
$(top_builddir)/src/loader/libloader.la \
- $(CLOCK_LIB) \
- $(DLOPEN_LIBS) \
- $(PTHREAD_LIBS) \
- -lm
+ $(GALLIUM_COMMON_LIB_DEPS)
if HAVE_MESA_LLVM
AM_LDFLAGS += $(LLVM_LDFLAGS)
$(top_builddir)/src/mesa/libmesagallium.la \
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
$(top_builddir)/src/mapi/glapi/libglapi.la \
- $(CLOCK_LIB) \
- $(DLOPEN_LIBS) \
- $(PTHREAD_LIBS) \
- -lm
+ $(GALLIUM_COMMON_LIB_DEPS)
endif
endif
$(top_builddir)/src/gallium/state_trackers/gbm/libgbm.la \
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
$(LIBDRM_LIBS) \
- -lm \
- $(CLOCK_LIB) \
- $(PTHREAD_LIBS) \
- $(DLOPEN_LIBS)
+ $(GALLIUM_COMMON_LIB_DEPS)
if HAVE_DRI
gbm_gallium_drm_la_LIBADD += \
$(top_builddir)/src/gallium/drivers/rbug/librbug.la \
$(top_builddir)/src/gallium/drivers/trace/libtrace.la \
$(top_builddir)/src/gallium/drivers/galahad/libgalahad.la \
- -lm \
- $(CLOCK_LIB) \
- $(PTHREAD_LIBS) \
- $(DLOPEN_LIBS)
+ $(GALLIUM_COMMON_LIB_DEPS)
AM_LDFLAGS = \
-module \
$(top_builddir)/src/gallium/state_trackers/xa/libxatracker.la \
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
$(LIBDRM_LIBS) \
- -lm \
- $(CLOCK_LIB) \
- $(PTHREAD_LIBS) \
- $(DLOPEN_LIBS)
-
+ $(GALLIUM_COMMON_LIB_DEPS)
if HAVE_DRI
libxatracker_la_LIBADD += \
$(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la \
$(top_builddir)/src/gallium/winsys/sw/null/libws_null.la \
$(top_builddir)/src/gallium/auxiliary/libgallium.la \
- $(DLOPEN_LIBS) \
- $(PTHREAD_LIBS) \
- -lm
+ $(GALLIUM_COMMON_LIB_DEPS)
if NEED_PIPE_LOADER_XLIB
LDADD += \
$(top_builddir)/src/gallium/drivers/trace/libtrace.la \
$(top_builddir)/src/gallium/winsys/sw/null/libws_null.la \
$(top_builddir)/src/gallium/drivers/softpipe/libsoftpipe.la \
- $(DLOPEN_LIBS) \
- $(PTHREAD_LIBS) \
- -lm
+ $(GALLIUM_COMMON_LIB_DEPS)
noinst_PROGRAMS = pipe_barrier_test u_cache_test u_half_test \
u_format_test u_format_compatible_test translate_test