On 28/11/2013, at 5:09 AM, GitHub wrote:

>  Log Message:
>  -----------
>  Add a new flag --run-only to flx.
> 
> The flag --run-only says to run the executable or dylib,
> which would be produced by the command, without any compilation
> or dependency checking. It is intended to be used where the program
> uses dynamically loaded libraries or plugins and the LD_LIBRARY_PATH
> needs to be specified so they can be loaded. flx provides the
> appropriate path in a platform independent way, i.e. uses
> DYLD_LIBRARY_PATH on OSX.


Example:

~/felix>FLX_SHELL_ECHO=1 build/release/host/bin/flx --test=build/release 
--static --run-only aa
[system] "/Users/johnskaller/.felix/cache/binary/Users/johnskaller/felix/aa"

If you statically link, you can still need plugins. At present there is no way 
to specify
the location of a plugin. It has to be on the LD_LIBRARY_PATH on Linux,
or DYLD_LIBRARY_PATH on OSX, or PATH on Windows.

What's more, the plugin can load other plugins, and they will require the
Felix RTL as shared libs at load time.

Be warned this means you'll get a copy of the Felix library in the executable
and another copy will be loaded dynamically with the first plugin. This 
shouldn't
matter to Felix RTL (since it's re-entrant except where it can't be).

--
john skaller
skal...@users.sourceforge.net
http://felix-lang.org




------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to