]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
basic: don't link "libm.so" into "libbasic.so" (#5628)
authorThomas Haller <thaller@redhat.com>
Fri, 24 Mar 2017 14:36:06 +0000 (15:36 +0100)
committerMartin Pitt <martinpitt@users.noreply.github.com>
Fri, 24 Mar 2017 14:36:06 +0000 (15:36 +0100)
Very few parts of the systemd source require <math.h> or "libm.so".
Linking libbasic with -lm drags the mathematical library in for all
systemd components, and in turn for all users of systemd libraries.

It's just unneeded.

Makefile.am

index 1fe86fd543a9bf895ae5e3553271df700405d339..acda826621958f2d85558721e229c43fbf9647a3 100644 (file)
@@ -1010,8 +1010,7 @@ libbasic_la_CFLAGS = \
 libbasic_la_LIBADD = \
        $(SELINUX_LIBS) \
        $(CAP_LIBS) \
-       -lrt \
-       -lm
+       -lrt
 
 # -----------------------------------------------------------------------------
 noinst_LTLIBRARIES += \