There exists an explicit linker flag -s NO_FILESYSTEM=1 that can be passed to remove the filesystem code, see https://github.com/kripken/emscripten/blob/master/src/settings.js#L367 .
2014-11-18 16:05 GMT+02:00 Pepijn Van Eeckhoudt <[email protected]>: > Hi all, > > I'm currently trying to compile libtiff and package it as an AMD module. > In order to reduce the size of the generated javascript file I'm trying to > avoid pulling in the filesystem emulation code. I've ensured that the > compiled code doesn't make use of any file descriptor based I/O functions > (directly or indirectly), but FS, IDBFS, ... all keep getting included by > the linker. Is there any easy way to debug the linking process? Something > like a dump of the graph of dependencies? If not, could someone provide a > pointer to the relevant part(s) of the emscripten code where symbol > dependencies get resolved? > > Thanks, > > Pepijn > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
