diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2018-12-16 15:55:19 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2018-12-17 10:55:19 +0100 |
commit | b5366b1d8d9edf8a21de4e256ff89774c6b87f16 (patch) | |
tree | 3b4527e0e62acc65cd7cf15aae5fd3bf162cec50 /make.tmpl.in | |
parent | 143c8dcd7f20f6ac07eeb859c5fa8d7fad9a5a44 (diff) | |
download | lvm2-b5366b1d8d9edf8a21de4e256ff89774c6b87f16.tar.gz |
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.
Diffstat (limited to 'make.tmpl.in')
-rw-r--r-- | make.tmpl.in | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/make.tmpl.in b/make.tmpl.in index 56d7cd684..d7b65689f 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@ |