diff mbox

[LEDE-DEV] util-linux: fix build with uclibc

Message ID 20170413160705.14431-1-hauke.mehrtens@intel.com
State Accepted
Delegated to: Hauke Mehrtens
Headers show

Commit Message

Hauke Mehrtens April 13, 2017, 4:07 p.m. UTC
From: Hauke Mehrtens <hauke.mehrtens@intel.com>

Fix build of scriptreplay with uClibc.
Some parts of the libm detected were backported to 2.29.2, but some parts
were missing, which are added here.

Signed-off-by: Hauke Mehrtens <hauke.mehrtens@intel.com>
---

This should also go into LEDE-17.01 branch.

 .../001-uclibc_add_libm_to_scriptreplay.patch      | 24 ++++++++++++++++++++++
 1 file changed, 24 insertions(+)
 create mode 100644 package/utils/util-linux/patches/001-uclibc_add_libm_to_scriptreplay.patch
diff mbox

Patch

diff --git a/package/utils/util-linux/patches/001-uclibc_add_libm_to_scriptreplay.patch b/package/utils/util-linux/patches/001-uclibc_add_libm_to_scriptreplay.patch
new file mode 100644
index 0000000..a291f6a
--- /dev/null
+++ b/package/utils/util-linux/patches/001-uclibc_add_libm_to_scriptreplay.patch
@@ -0,0 +1,24 @@ 
+From feda4342df1ced25df3d200ed23469e740196c86 Mon Sep 17 00:00:00 2001
+From: Karel Zak <kzak@redhat.com>
+Date: Wed, 18 Jan 2017 13:17:21 +0100
+Subject: build-sys: use -lm for scriptreplay if necessary
+
+Reported-by: Bert van Hall <bert.vanhall@avionic-design.de>
+Addresses: https://github.com/karelzak/util-linux/pull/397
+Signed-off-by: Karel Zak <kzak@redhat.com>
+---
+ configure.ac             | 7 +++++++
+ term-utils/Makemodule.am | 2 +-
+ 2 files changed, 8 insertions(+), 1 deletion(-)
+
+--- a/term-utils/Makemodule.am
++++ b/term-utils/Makemodule.am
+@@ -21,7 +21,7 @@ if BUILD_SCRIPTREPLAY
+ usrbin_exec_PROGRAMS += scriptreplay
+ dist_man_MANS += term-utils/scriptreplay.1
+ scriptreplay_SOURCES = term-utils/scriptreplay.c
+-scriptreplay_LDADD = $(LDADD) libcommon.la
++scriptreplay_LDADD = $(LDADD) libcommon.la $(MATH_LIBS)
+ endif # BUILD_SCRIPTREPLAY
+ 
+