def prep_dlfcn_main(self):
    self.set_setting('MAIN_MODULE')
    self.clear_setting('SIDE_MODULE')
    create_test_file('lib_so_pre.js', ("\n    if (!Module['preRun']) Module['preRun'] = [];\n    Module['preRun'].push(function() { FS.createDataFile('/', 'liblib.so', %s, true, false, false); });\n" % str(list(bytearray(open('liblib.so', 'rb').read())))))
    self.emcc_args += ['--pre-js', 'lib_so_pre.js']
def prep_dlfcn_main(self):
    self.set_setting('MAIN_MODULE')
    self.clear_setting('SIDE_MODULE')
    create_test_file('lib_so_pre.js', ("\n    if (!Module['preRun']) Module['preRun'] = [];\n    Module['preRun'].push(function() { FS.createDataFile('/', 'liblib.so', %s, true, false, false); });\n" % str(list(bytearray(open('liblib.so', 'rb').read())))))
    self.emcc_args += ['--pre-js', 'lib_so_pre.js']