comparison test/dynload_plain/dynload_plain.c @ 313:73b5b9e224e2

- dynload_plain test: stability fix for picking right testing lib on build
author Tassilo Philipp
date Tue, 05 Nov 2019 15:19:16 +0100
parents 18de5758980e
children b2e4e23d9953
comparison
equal deleted inserted replaced
312:18de5758980e 313:73b5b9e224e2
56 /* can be specified in Makefile; this avoids trying to write portable directory traversal stuff */ 56 /* can be specified in Makefile; this avoids trying to write portable directory traversal stuff */
57 const char* clibs[] = { 57 const char* clibs[] = {
58 #if defined(DEF_C_DYLIB) 58 #if defined(DEF_C_DYLIB)
59 DEF_C_DYLIB, 59 DEF_C_DYLIB,
60 #endif 60 #endif
61 /* fallback guessing if not provided by Makefile */
61 "/lib/libc.so", 62 "/lib/libc.so",
62 "/lib32/libc.so", 63 "/lib32/libc.so",
63 "/lib64/libc.so", 64 "/lib64/libc.so",
64 "/usr/lib/libc.so", 65 "/usr/lib/libc.so",
65 "/usr/lib/system/libsystem_c.dylib", /* macos */ 66 "/usr/lib/system/libsystem_c.dylib", /* macos */
66 "/usr/lib/libc.dylib", 67 "/usr/lib/libc.dylib",
67 "/boot/system/lib/libroot.so", /* Haiku */ 68 "/boot/system/lib/libroot.so", /* Haiku */
68 "\\ReactOS\\system32\\msvcrt.dll", /* ReactOS */ 69 "\\ReactOS\\system32\\msvcrt.dll", /* ReactOS */
69 "C:\\ReactOS\\system32\\msvcrt.dll", 70 "C:\\ReactOS\\system32\\msvcrt.dll",
70 "\\Windows\\system32\\msvcrt.dll", /* Windows */ 71 "\\Windows\\system32\\msvcrt.dll", /* Windows */
71 "C:\\Windows\\system32\\msvcrt.dll" 72 "C:\\Windows\\system32\\msvcrt.dll"
72 }; 73 };
73 74
74 /* use first matching path of hacky hardcoded list, above */ 75 /* use first matching path of hacky hardcoded list, above */
75 for(i=0; i<(sizeof(clibs)/sizeof(const char*)); ++i) { 76 for(i=0; i<(sizeof(clibs)/sizeof(const char*)); ++i) {