Changeset 16717 in vbox for trunk/src/VBox/Main/cbinding
- Timestamp:
- Feb 12, 2009 5:44:44 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 42747
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/cbinding/tstdlOpen.c
r16716 r16717 360 360 * Construct the full name. 361 361 */ 362 362 363 cbBuf = cchHome + sizeof("/" DYNLIB_NAME); 363 364 pszBuf = (char *)malloc(cbBuf); … … 380 381 * Try load it by that name, setting the VBOX_APP_HOME first (for now). 381 382 */ 383 382 384 setenv("VBOX_APP_HOME", pszBuf, 0 /* no need to overwrite */); 383 385 g_hVBoxXPCOMC = dlopen(pszBuf, RTLD_NOW | RTLD_LOCAL); … … 426 428 * If the user specifies the location, try only that. 427 429 */ 430 428 431 const char *pszHome = getenv("VBOX_APP_HOME"); 429 432 if (pszHome) … … 433 436 * Try the known standard locations. 434 437 */ 438 435 439 #if defined(__gnu__linux__) || defined(__linux__) 436 440 if (tryLoadOne("/opt/VirtualBox", pszMsgPrefix) == 0) … … 453 457 * Finally try the dynamic linker search path. 454 458 */ 459 455 460 if (tryLoadOne(NULL, pszMsgPrefix) == 0) 456 461 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.