aboutsummaryrefslogtreecommitdiff
path: root/gprofng/src/envsets.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gprofng/src/envsets.cc')
-rw-r--r--gprofng/src/envsets.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gprofng/src/envsets.cc b/gprofng/src/envsets.cc
index de06fbf..484cbf8 100644
--- a/gprofng/src/envsets.cc
+++ b/gprofng/src/envsets.cc
@@ -167,7 +167,7 @@ collect::putenv_libcollector_ld_misc ()
char *fname;
if (*s == '/')
{
- fname = dbe_sprintf ("%s/%s", s, LIBGP_COLLECTOR);
+ fname = dbe_sprintf ("%s/%s/%s", s, PACKAGE, LIBGP_COLLECTOR);
if (access (fname, R_OK | F_OK) == 0)
{
if (++cnt != 1)
@@ -177,12 +177,12 @@ collect::putenv_libcollector_ld_misc ()
}
else
{
- fname = dbe_sprintf ("%s/%s/%s", run_dir, s, LIBGP_COLLECTOR);
+ fname = dbe_sprintf ("%s/%s/%s/%s", run_dir, s, PACKAGE, LIBGP_COLLECTOR);
if (access (fname, R_OK | F_OK) == 0)
{
if (++cnt != 1)
sb.append (':');
- sb.appendf ("%s/%s", run_dir, s);
+ sb.appendf ("%s/%s/%s", run_dir, s, PACKAGE);
}
}
free (fname);