diff options
author | Jörg Krause <joerg.krause@embedded.rocks> | 2018-12-14 07:36:07 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@bootlin.com> | 2018-12-14 22:04:49 +0100 |
commit | 56d2ac54dd6ff111cc1c6b2221903ccaf84de188 (patch) | |
tree | cb72b84f7c4d08198baf7a4e7daeaa0abdb88466 /package/lua-stdlib | |
parent | 3211f0fb76cb500f68e3fa3ce009695dfcc2f871 (diff) | |
download | buildroot-56d2ac54dd6ff111cc1c6b2221903ccaf84de188.tar.gz buildroot-56d2ac54dd6ff111cc1c6b2221903ccaf84de188.zip |
package/luvi: add upstream patch to fix runtime issue with CMake 3.12+
luvi fails to run when it was build with CMake 3.12+:
```
[string "return require('init')(...)"]:1: module 'init' not found:
no field package.preload['init']
no file './init.lua'
no file '/usr/share/luajit-2.0.5/init.lua'
no file '/usr/local/share/lua/5.1/init.lua'
no file '/usr/local/share/lua/5.1/init/init.lua'
no file '/usr/share/lua/5.1/init.lua'
no file '/usr/share/lua/5.1/init/init.lua'
no file './init.so'
no file '/usr/local/lib/lua/5.1/init.so'
no file '/usr/lib/lua/5.1/init.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
```
Looking at link.txt for the luvi executable shows that `-rdynamic` is
not set anymore in CMake 3.12. This has the effect, that symbols are
missing in the `.dynsym` section in the binary.
The patch, sets `ENABLE_EXPORTS` to true in CMakeLists.txt to force setting
`-rdynamic` explicitly.
Upstream status: b8781653dcb8815a3019a77baf4f3b7f7a255ebe
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/lua-stdlib')
0 files changed, 0 insertions, 0 deletions