All of lore.kernel.org
 help / color / mirror / Atom feed
* master - makefiles: allow to set LIBS in Makefiles
@ 2018-12-17 10:08 Zdenek Kabelac
  0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2018-12-17 10:08 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=b5366b1d8d9edf8a21de4e256ff89774c6b87f16
Commit:        b5366b1d8d9edf8a21de4e256ff89774c6b87f16
Parent:        143c8dcd7f20f6ac07eeb859c5fa8d7fad9a5a44
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Sun Dec 16 15:55:19 2018 +0100
Committer:     Zdenek Kabelac <zkabelac@redhat.com>
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(-)

diff --git a/make.tmpl.in b/make.tmpl.in
index 56d7cd6..d7b6568 100644
--- a/make.tmpl.in
+++ b/make.tmpl.in
@@ -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@



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2018-12-17 10:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-17 10:08 master - makefiles: allow to set LIBS in Makefiles Zdenek Kabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.