diff options
author | Rosen Penev <rosenp@gmail.com> | 2019-10-14 22:59:42 -0700 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2019-10-15 18:13:54 +0200 |
commit | 4533ba6810cb8ad00fdc4b320ed6619c145174bf (patch) | |
tree | 91e3b639c263d5e4140ac6018364db6d65cb7888 /package/utils/lua | |
parent | 48b5d08a483a29c4e654a08580fffe12559e41b7 (diff) | |
download | upstream-4533ba6810cb8ad00fdc4b320ed6619c145174bf.tar.gz upstream-4533ba6810cb8ad00fdc4b320ed6619c145174bf.tar.bz2 upstream-4533ba6810cb8ad00fdc4b320ed6619c145174bf.zip |
lua: fix linking under glibc
Compilation of liblua itself works, but when other packages link against
it, the linker starts throwing undefined references to a bunch of math
functions in libm.
First discovered in a failed attempt to transition a package to uClibc++.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
[fix commit title capitalization]
Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'package/utils/lua')
-rw-r--r-- | package/utils/lua/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/package/utils/lua/Makefile b/package/utils/lua/Makefile index e376e8c472..0421abc301 100644 --- a/package/utils/lua/Makefile +++ b/package/utils/lua/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=lua PKG_VERSION:=5.1.5 -PKG_RELEASE:=6 +PKG_RELEASE:=7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.lua.org/ftp/ \ @@ -99,7 +99,7 @@ define Build/Compile RANLIB="$(TARGET_CROSS)ranlib" \ INSTALL_ROOT=/usr \ CFLAGS="$(TARGET_CPPFLAGS) $(TARGET_CFLAGS)" \ - MYLDFLAGS="$(TARGET_LDFLAGS)" \ + MYLDFLAGS="$(TARGET_LDFLAGS) $(if $(CONFIG_USE_GLIBC),-lm)" \ PKG_VERSION=$(PKG_VERSION) \ linux rm -rf $(PKG_INSTALL_DIR) |