Skip to contentSkip to conversation

master - build: Link with -lrt

PATCH Joe Thornber 1 participant 1 message Jun 1, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=c4497ee9e849d2d6c74412de21c6c3823d4de5f1
Commit:        c4497ee9e849d2d6c74412de21c6c3823d4de5f1
Parent:        15a8142f6df6d7ce26ca71f2434d6cd44ef2265c
Author:        Joe Thornber <[email protected]>
AuthorDate:    Fri Jun 1 17:20:48 2018 +0100
Committer:     Joe Thornber <[email protected]>
CommitterDate: Fri Jun 1 17:20:48 2018 +0100

build: Link with -lrt

Needed for older version of glibc

---
 make.tmpl.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
make.tmpl.in +1 -1
index c2d81c0..ad927b0 100644
@@ -58,7 +58,7 @@ PYTHON3 = @PYTHON3@
 PYCOMPILE = $(top_srcdir)/autoconf/py-compile
 
 LIBS = @LIBS@
-LIBS += $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS)
+LIBS += $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS) $(RT_LIBS)
 # Extra libraries always linked with static binaries
 STATIC_LIBS = $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS)
 DEFS += @DEFS@