diff options
author | Michal Privoznik <mprivozn@redhat.com> | 2016-02-11 13:51:11 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-02-15 10:18:11 +1000 |
commit | 77ad82dcf643100e415b30c6f4ecc96a11066603 (patch) | |
tree | 52bbb0a3635ae5a735c17c6982c330a58daf8cc6 | |
parent | 7b776ec86658d1efeff8b92956a2f4b19c54e58c (diff) |
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: Michal Privoznik <mprivozn@redhat.com>
Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | src/gallium/auxiliary/Makefile.am | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/Makefile.am b/src/gallium/auxiliary/Makefile.am index e008734..9c24c1b 100644 --- a/src/gallium/auxiliary/Makefile.am +++ b/src/gallium/auxiliary/Makefile.am @@ -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) \ |