def build_dlfcn_lib(self, lib_src, dirname, filename):
    if self.get_setting('WASM'):
        self.build(lib_src, dirname, filename, js_outfile=False)
        shutil.move((filename + '.o.wasm'), os.path.join(dirname, 'liblib.so'))
    else:
        self.build(lib_src, dirname, filename)
        shutil.move((filename + '.o.js'), os.path.join(dirname, 'liblib.so'))
def build_dlfcn_lib(self, lib_src, dirname, filename):
    if self.get_setting('WASM'):
        self.build(lib_src, dirname, filename, js_outfile=False)
        shutil.move((filename + '.o.wasm'), os.path.join(dirname, 'liblib.so'))
    else:
        self.build(lib_src, dirname, filename)
        shutil.move((filename + '.o.js'), os.path.join(dirname, 'liblib.so'))