svn path=/trunk/yasm/; revision=2099
/* Load library */
- path = yasm_xmalloc(strlen(name)+5);
- strcpy(path, name);
+ path = yasm_xmalloc(strlen(name)+10);
#if defined(_MSC_VER)
+ strcpy(path, name);
strcat(path, ".dll");
lib = load_dll(path);
#elif defined(__GNUC__)
+ strcpy(path, "lib");
+ strcat(path, name);
strcat(path, ".so");
lib = load_dll(path);
+ if (!lib) {
+ strcpy(path, name);
+ strcat(path, ".so");
+ lib = load_dll(path);
+ }
#endif
yasm_xfree(path);
if (!lib)
#ifdef CMAKE_BUILD
/* Load standard modules */
- if (!load_plugin("libyasmstd")) {
+ if (!load_plugin("yasmstd")) {
print_error(_("%s: could not load standard modules"), _("FATAL"));
return EXIT_FAILURE;
}