From 37673df78055d8ee51d976f4f4a5048a05b45415 Mon Sep 17 00:00:00 2001 From: Slava Barinov Date: Tue, 23 Apr 2019 12:09:33 +0300 Subject: [PATCH] Add -lm dependency for gettextlib to fix LTO build Change-Id: I834eec5427aff8232b4e6fa81d40ac7f19afa9a1 Signed-off-by: Slava Barinov --- gettext-tools/gnulib-lib/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gettext-tools/gnulib-lib/Makefile.am b/gettext-tools/gnulib-lib/Makefile.am index 9e43721..dbe1bdf 100644 --- a/gettext-tools/gnulib-lib/Makefile.am +++ b/gettext-tools/gnulib-lib/Makefile.am @@ -61,6 +61,8 @@ include Makefile.gnulib # Which classes to export from the shared library. MOOPPFLAGS += --dllexport=styled_ostream +libgettextlib_la_LIBADD += -lm + # Linking with C++ libraries is needed _only_ on mingw and Cygwin. if !WOE32DLL libgettextlib_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ -- 2.7.4