From e821eddb62c5dc4872922e9244d2e407e0361b57 Mon Sep 17 00:00:00 2001 From: matt335672 <30179339+matt335672@users.noreply.github.com> Date: Wed, 21 Feb 2024 12:43:53 +0000 Subject: [PATCH] Remove unnecessary '-lrt' from common lib link The '-lrt' added to the Makefile for the common library appears to be unnecessary. - On modern Linuxes, this library has been merged with libc, and the supplied library is empty. - On older ones (e.g. Devuan 4), the library contains routines we do not use in xrdp (although we use 'shm_open()' in xorgxrdp). - On FreeBSD 14 the library contains only mq_* and timer_* routines which, again, are not required. --- common/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/Makefile.am b/common/Makefile.am index baed9f0d..141addc8 100644 --- a/common/Makefile.am +++ b/common/Makefile.am @@ -71,6 +71,6 @@ libcommon_la_SOURCES = \ $(PIXMAN_SOURCES) libcommon_la_LIBADD = \ - -lpthread -lrt \ + -lpthread \ $(OPENSSL_LIBS) \ $(DLOPEN_LIBS)