Add all symbols to dynamic symbol table on linux/freebsd
This allows lua scripts to require modules written in C.
@@ -69,18 +69,20 @@ library
if os(linux)
cc-options: "-DLUA_USE_LINUX"
+ ld-options: "-Wl,-E"
if os(darwin)
cc-options: "-DLUA_USE_MACOSX"
if os(freebsd)
cc-options: "-DLUA_USE_POSIX"
+ ld-options: "-Wl,-E"
if os(windows)
cc-options: "-D__NO_ISOCEXT"
if flag(apicheck)
- cc-Options: "-DLUA_USE_APICHECK"
+ cc-options: "-DLUA_USE_APICHECK"
-- This is not necessary because we have a test suite now. Still keeping here as
-- a very simple test. Originally added with 799a4c2 to test if linking with
