Commit 77ad82dc authored by Michal Privoznik's avatar Michal Privoznik Committed by Dave Airlie

gallium: Add pthread compiler flags

There are places in the code where we use pthread_* functions,
but forgot to add corresponding bits onto the compiler command
line. Because of that the build fails:

  CCLD     virgl_test_server
../src/.libs/libvirglrenderer.so: undefined reference to `pthread_sigmask'
../src/.libs/libvirglrenderer.so: undefined reference to `pthread_join'
../src/.libs/libvirglrenderer.so: undefined reference to `pthread_create'
../src/.libs/libvirglrenderer.so: undefined reference to `pthread_mutexattr_init'
../src/.libs/libvirglrenderer.so: undefined reference to `pthread_mutexattr_destroy'
collect2: error: ld returned 1 exit status
Signed-off-by: default avatarMichal Privoznik <mprivozn@redhat.com>
Acked-by: default avatarMarc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 7b776ec8
......@@ -9,10 +9,14 @@ AM_CFLAGS = \
-I$(top_srcdir)/src/gallium/auxiliary/util \
-I$(top_srcdir)/src/gallium/auxiliary/ \
$(GALLIUM_CFLAGS) \
$(PTHREAD_CFLAGS) \
$(VISIBILITY_CFLAGS)
AM_CXXFLAGS = $(VISIBILITY_CXXFLAGS)
AM_LIBADD = \
$(PTHREAD_LIBS)
libgallium_la_SOURCES = \
$(C_SOURCES) \
$(GENERATED_SOURCES) \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment