ports/emulators/tme/files/patch-libtme-module.c
Martin Wilke 165ff1ee24 The Machine Emulator provides a general-purpose framework
for computer emulation.  Right now it can emulate Sun 2/120 and
3/150.

WWW:	http://theory.lcs.mit.edu/~fredette/tme/

PR:		ports/106839
Submitted by:	trasz <trasz at pin.if.uz.zgora.pl>
2006-12-21 20:20:43 +00:00

18 lines
627 B
C

--- libtme/module.c.orig Wed Jan 26 13:59:24 2005
+++ libtme/module.c Sun Dec 17 19:11:37 2006
@@ -107,13 +107,14 @@
FILE *modules_index;
/* pass over the search path environment variables: */
- for (pass = 0; ++pass < 2; ) {
+ for (pass = 0; ++pass <= 3; ) {
/* get the next search path environment variable value: */
search_path = NULL;
switch (pass) {
case 1: search_path = getenv("LTDL_LIBRARY_PATH"); break;
case 2: search_path = getenv(LTDL_SHLIBPATH_VAR); break;
+ case 3: search_path = "%%PREFIX%%/lib"; break;
default: assert(FALSE);
}
if (search_path == NULL) {