[systemd-devel] [PATCH] build: do not link everything with -lrt (and therefore -pthread)

Kay Sievers kay at vrfy.org
Mon Jul 29 17:41:15 PDT 2013


On Sun, Jul 28, 2013 at 11:48 PM, Jan Engelhardt <jengelh at inai.de> wrote:
> On Monday 2013-07-22 05:57, Shawn Landden wrote:
>>diff --git a/Makefile.am b/Makefile.am
>>index 3ece887..f96866c 100644
>>--- a/Makefile.am
>>+++ b/Makefile.am
>>@@ -1832,6 +1832,7 @@ libsystemd_daemon_internal_la_SOURCES = \
>>       $(libsystemd_daemon_la_SOURCES)
>>
>> libsystemd_daemon_la_CFLAGS = \
>>+      $(RT_LIBS) \
>>       $(AM_CFLAGS) \
>>       -fvisibility=hidden \
>>       -DSD_EXPORT_SYMBOLS
>
> libs don't belong into CFLAGS. They ought to go into _la_LIBADD.

Moved it to libsystemd_daemon_la_LIBADD and applied it.

Thanks,
Kay


More information about the systemd-devel mailing list