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

Jan Engelhardt jengelh at inai.de
Sun Jul 28 14:48:19 PDT 2013


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.



More information about the systemd-devel mailing list