From 2185e39b1c84bf855deafa5605f4316238d2c354 Mon Sep 17 00:00:00 2001 From: notaz Date: Mon, 27 Dec 2010 19:33:26 +0200 Subject: some debug code improvements --- frontend/main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'frontend') diff --git a/frontend/main.c b/frontend/main.c index b3a56c6..23ed7b1 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -432,6 +432,13 @@ void *SysLoadLibrary(const char *lib) { return (void *)(long)(PLUGIN_DL_BASE + builtin_plugin_ids[i]); } +#if defined(__x86_64__) || defined(__i386__) + // convenience hack + char name[MAXPATHLEN]; + snprintf(name, sizeof(name), "%s.x86", lib); + lib = name; +#endif + return dlopen(lib, RTLD_NOW); } -- cgit v1.2.3