util-linux: fix build with uclibc
[openwrt/openwrt.git] / package / utils / util-linux / patches / 001-uclibc_add_libm_to_scriptreplay.patch
1 From feda4342df1ced25df3d200ed23469e740196c86 Mon Sep 17 00:00:00 2001
2 From: Karel Zak <kzak@redhat.com>
3 Date: Wed, 18 Jan 2017 13:17:21 +0100
4 Subject: build-sys: use -lm for scriptreplay if necessary
5
6 Reported-by: Bert van Hall <bert.vanhall@avionic-design.de>
7 Addresses: https://github.com/karelzak/util-linux/pull/397
8 Signed-off-by: Karel Zak <kzak@redhat.com>
9 ---
10 configure.ac | 7 +++++++
11 term-utils/Makemodule.am | 2 +-
12 2 files changed, 8 insertions(+), 1 deletion(-)
13
14 --- a/term-utils/Makemodule.am
15 +++ b/term-utils/Makemodule.am
16 @@ -21,7 +21,7 @@ if BUILD_SCRIPTREPLAY
17 usrbin_exec_PROGRAMS += scriptreplay
18 dist_man_MANS += term-utils/scriptreplay.1
19 scriptreplay_SOURCES = term-utils/scriptreplay.c
20 -scriptreplay_LDADD = $(LDADD) libcommon.la
21 +scriptreplay_LDADD = $(LDADD) libcommon.la $(MATH_LIBS)
22 endif # BUILD_SCRIPTREPLAY
23
24