Skip to content

Commit

Permalink
2005-11-09 Miguel de Icaza <miguel@novell.com>
Browse files Browse the repository at this point in the history
	* unix/util.c (set_dirs): Instead of hardcoding the value to
	/usr/bin, use MONO_BINDIR which comes from Automake's bindir.  If
	the executable is in the place configured, use the Automake
	settings.  Otherwise use the standard-layout based computed
	paths. 

svn path=/trunk/mono/; revision=52792
  • Loading branch information
migueldeicaza committed Nov 9, 2005
1 parent dd4c9f8 commit b490269
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions mono/os/ChangeLog
@@ -1,3 +1,11 @@
2005-11-09 Miguel de Icaza <miguel@novell.com>

* unix/util.c (set_dirs): Instead of hardcoding the value to
/usr/bin, use MONO_BINDIR which comes from Automake's bindir. If
the executable is in the place configured, use the Automake
settings. Otherwise use the standard-layout based computed
paths.

2005-11-08 Miguel de Icaza <miguel@novell.com>

* unix/util.c (set_dirs): The buffer is overwritten by the
Expand Down
2 changes: 1 addition & 1 deletion mono/os/unix/Makefile.am
Expand Up @@ -9,7 +9,7 @@ assembliesdir = $(exec_prefix)/lib
confdir = $(sysconfdir)
endif

INCLUDES = -I$(top_srcdir) -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\" $(GLIB_CFLAGS)
INCLUDES = -I$(top_srcdir) -DMONO_BINDIR=\"$(bindir)/\" -DMONO_ASSEMBLIES=\"$(assembliesdir)\" -DMONO_CFG_DIR=\"$(confdir)\" $(GLIB_CFLAGS)

noinst_LTLIBRARIES = libmonoos.la

Expand Down
2 changes: 1 addition & 1 deletion mono/os/unix/util.c
Expand Up @@ -47,7 +47,7 @@ set_dirs (char *exe)
/*
* Only /usr prefix is treated specially
*/
if (strncmp (exe, "/usr/bin/", 9) == 0 || (base = compute_base (exe)) == NULL){
if (strncmp (exe, MONO_BINDIR, strlen (MONO_BINDIR)) == 0 || (base = compute_base (exe)) == NULL){
fallback ();
return;
} else {
Expand Down

0 comments on commit b490269

Please sign in to comment.