From b5366b1d8d9edf8a21de4e256ff89774c6b87f16 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sun, 16 Dec 2018 15:55:19 +0100 Subject: 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 file changed, 1 insertion(+), 2 deletions(-) (limited to 'make.tmpl.in') 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@ -- cgit v1.2.1