]> granicus.if.org Git - graphviz/commitdiff
update binary relocation mechanism for move of libgvc
authorellson <devnull@localhost>
Tue, 26 Sep 2006 17:35:39 +0000 (17:35 +0000)
committerellson <devnull@localhost>
Tue, 26 Sep 2006 17:35:39 +0000 (17:35 +0000)
lib/gvc/gvconfig.c

index 2845984ad2e019a369d02a86a0ecdcf223b6a9c7..ef01ebb696361d141bdd4cde42ec24a38c333433 100644 (file)
@@ -258,9 +258,11 @@ char * gvconfig_libdir(void)
                if (tmp) {
                    *tmp = 0;
                    /* Check for real /lib dir. Don't accept pre-install /.libs */
-                   if (strcmp(strrchr(path,'/'), "/graphviz") != 0)
+                   if (strcmp(strrchr(path,'/'), "/.libs") == 0)
                        continue;
-                   libdir = path;
+                   strcpy(line, tmp);  /*use line buffer for result */
+                   strcat(line, "/graphviz");  /* plugins are in "graphviz" subdirectory */
+                   libdir = line;
                    break;
                }
             }