chiark / gitweb /
build-sys: add -pthread flag for libsystemd-shared
authorRonny Chevalier <chevalier.ronny@gmail.com>
Sat, 21 Jun 2014 20:07:09 +0000 (22:07 +0200)
committerTom Gundersen <teg@jklm.no>
Sat, 21 Jun 2014 22:36:19 +0000 (00:36 +0200)
src/shared/async.c uses pthread so it will fail at link time if we link
only to libsystemd-shared and use async

Makefile.am

index c7653ea..00db82d 100644 (file)
@@ -837,7 +837,8 @@ nodist_libsystemd_shared_la_SOURCES = \
 
 libsystemd_shared_la_CFLAGS = \
        $(AM_CFLAGS) \
 
 libsystemd_shared_la_CFLAGS = \
        $(AM_CFLAGS) \
-       $(SECCOMP_CFLAGS)
+       $(SECCOMP_CFLAGS) \
+       -pthread
 
 # ------------------------------------------------------------------------------
 noinst_LTLIBRARIES += \
 
 # ------------------------------------------------------------------------------
 noinst_LTLIBRARIES += \