|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
From b4e76a669bedc420f9616c4a7d8b3e15b43fca78 Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
From: Thomas Haller <thaller@redhat.com>
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
Date: Fri, 24 Mar 2017 15:36:06 +0100
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
Subject: [PATCH] basic: don't link "libm.so" into "libbasic.so" (#5628)
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
Very few parts of the systemd source require <math.h> or "libm.so".
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
Linking libbasic with -lm drags the mathematical library in for all
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
systemd components, and in turn for all users of systemd libraries.
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
It's just unneeded.
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
(cherry picked from commit 1539a651a9d31c18273df917bbfe175ab3606025)
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
Makefile.am | 3 +--
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
diff --git a/Makefile.am b/Makefile.am
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
index 2a5610740e..a767a5aa0d 100644
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
--- a/Makefile.am
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
+++ b/Makefile.am
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
@@ -1005,8 +1005,7 @@ libbasic_la_CFLAGS = \
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
libbasic_la_LIBADD = \
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
$(SELINUX_LIBS) \
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
$(CAP_LIBS) \
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
- -lrt \
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
- -lm
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
+ -lrt
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
# -----------------------------------------------------------------------------
|
|
Zbigniew Jędrzejewski-Szmek |
f4a676 |
noinst_LTLIBRARIES += \
|