Skip to contentSkip to conversation

master - makefiles: allow to set LIBS in Makefiles

PATCH Zdenek Kabelac 1 participant 1 message Dec 17, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b5366b1d8d9edf8a21de4e256ff89774c6b87f16
Commit:        b5366b1d8d9edf8a21de4e256ff89774c6b87f16
Parent:        143c8dcd7f20f6ac07eeb859c5fa8d7fad9a5a44
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sun Dec 16 15:55:19 2018 +0100
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Mon Dec 17 10:55:19 2018 +0100

makefiles: allow to set LIBS in Makefiles

Avoid doing hard set of LIBS var,
so if the LIBS is set before 'include make.tmpl' it's not lost. This gives better control over order of linked libraries.

---
 make.tmpl.in |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
make.tmpl.in +1 -2
index 56d7cd6..d7b6568 100644
@@ -61,8 +61,7 @@ PYTHON2 = @PYTHON2@
 PYTHON3 = @PYTHON3@
 PYCOMPILE = $(top_srcdir)/autoconf/py-compile
 
-LIBS = @LIBS@
-LIBS += $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS) $(RT_LIBS) -lm
+LIBS += @LIBS@ $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS) $(RT_LIBS) $(M_LIBS)
 # Extra libraries always linked with static binaries
 STATIC_LIBS = $(SELINUX_LIBS) $(UDEV_LIBS) $(BLKID_LIBS)
 DEFS += @DEFS@