Top Level Namespace
Defined Under Namespace
Modules: JL, Julia Classes: String
Instance Method Summary collapse
Instance Method Details
#jl4rb_makefile(incs, libs) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'ext/jl4rb/extconf.rb', line 15 def jl4rb_makefile(incs,libs) jl_share=`julia -e 'print(joinpath(Sys.BINDIR, Base.DATAROOTDIR, "julia"))'` $CFLAGS =`julia #{jl_share}/julia-config.jl --cflags`.strip + (RUBY_VERSION.split(".")[0] > "2" ? " -fdeclspec" : "") $LDFLAGS =`julia #{jl_share}/julia-config.jl --ldflags`.strip $LIBS = `julia #{jl_share}/julia-config.jl --ldlibs`.strip puts [$CFLAGS, $LDFLAGS, $LIBS] header = nil jl4r_name="jl4rb" $objs = [jl4r_name+".o"] dir_config("jl4rb") # p ( {:CFLAGS => $CFLAGS, :LDFLAGS => $LDFLAGS, :LIBS => $LIBS }) create_makefile(jl4r_name) end |