nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nit: do not specify an soname (or -g) for JIT FFI libraries
[nit.git]
/
src
/
interpreter
/
dynamic_loading_ffi
/
on_demand_compiler.nit
diff --git
a/src/interpreter/dynamic_loading_ffi/on_demand_compiler.nit
b/src/interpreter/dynamic_loading_ffi/on_demand_compiler.nit
index
eba0678
..
c54d578
100644
(file)
--- a/
src/interpreter/dynamic_loading_ffi/on_demand_compiler.nit
+++ b/
src/interpreter/dynamic_loading_ffi/on_demand_compiler.nit
@@
-109,7
+109,7
@@
redef class AModule
# Link everything in a shared library
# TODO customize the compiler
# Link everything in a shared library
# TODO customize the compiler
- var cmd = "{v.c_compiler} -Wall -shared -Wl,-soname,{mmodule.name}.so -g -o {foreign_code_lib_path} {object_files.join(" ")} {ldflags}"
+ var cmd = "{v.c_compiler} -Wall -shared -o {foreign_code_lib_path} {object_files.join(" ")} {ldflags}"
if sys.system(cmd) != 0 then
v.fatal "FFI Error: Failed to link native code using `{cmd}`"
return false
if sys.system(cmd) != 0 then
v.fatal "FFI Error: Failed to link native code using `{cmd}`"
return false