Commit ec132fe8 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont Committed by Alexandre Julliard

Support Darwin ".dylib".

parent 9214e3a7
...@@ -220,6 +220,7 @@ file_type get_file_type(const char* filename) ...@@ -220,6 +220,7 @@ file_type get_file_type(const char* filename)
if (strendswith(filename, ".a")) return file_arh; if (strendswith(filename, ".a")) return file_arh;
if (strendswith(filename, ".res")) return file_res; if (strendswith(filename, ".res")) return file_res;
if (strendswith(filename, ".so")) return file_so; if (strendswith(filename, ".so")) return file_so;
if (strendswith(filename, ".dylib")) return file_so;
if (strendswith(filename, ".def")) return file_dll; if (strendswith(filename, ".def")) return file_dll;
if (strendswith(filename, ".rc")) return file_rc; if (strendswith(filename, ".rc")) return file_rc;
...@@ -247,6 +248,10 @@ static file_type guess_lib_type(const char* dir, const char* library, char** fil ...@@ -247,6 +248,10 @@ static file_type guess_lib_type(const char* dir, const char* library, char** fil
/* Unix shared object */ /* Unix shared object */
if ((*file = try_lib_path(dir, "lib", library, ".so", file_so))) if ((*file = try_lib_path(dir, "lib", library, ".so", file_so)))
return file_so; return file_so;
/* Mach-O (Darwin/Mac OS X) Dynamic Library behaves mostly like .so */
if ((*file = try_lib_path(dir, "lib", library, ".dylib", file_so)))
return file_so;
/* Windows DLL */ /* Windows DLL */
if ((*file = try_lib_path(dir, "lib", library, ".def", file_dll))) if ((*file = try_lib_path(dir, "lib", library, ".def", file_dll)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment