mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-19 10:08:16 +02:00
-lpthread is not always a valid flag to pull pthread support, especially on Android it will fail to link due to a missing libpthread.so. The more generic way to build-in pthread support is to use the -pthread CFLAG, so let's use it instead. Signed-off-by: Tomasz Figa <tfiga@chromium.org> [Emil Velikov: rebase on top of previous commit] Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
24 lines
419 B
Makefile
24 lines
419 B
Makefile
include Makefile.sources
|
|
|
|
AM_CFLAGS = $(filter-out -Wpointer-arith, $(WARN_CFLAGS))
|
|
|
|
AM_CFLAGS += \
|
|
-pthread \
|
|
-I$(top_srcdir)/include/drm \
|
|
-I$(top_srcdir)/tests \
|
|
-I$(top_srcdir)
|
|
|
|
if HAVE_INSTALL_TESTS
|
|
bin_PROGRAMS = \
|
|
modetest
|
|
else
|
|
noinst_PROGRAMS = \
|
|
modetest
|
|
endif
|
|
|
|
modetest_SOURCES = $(MODETEST_FILES)
|
|
|
|
modetest_LDADD = \
|
|
$(top_builddir)/libdrm.la \
|
|
$(top_builddir)/tests/util/libutil.la \
|
|
$(CAIRO_LIBS)
|