From: ellson Date: Tue, 26 Sep 2006 17:35:39 +0000 (+0000) Subject: update binary relocation mechanism for move of libgvc X-Git-Tag: LAST_LIBGRAPH~32^2~5851 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=99ee6155ec1e1db8ddeab5459a0a6dec699eefaa;p=graphviz update binary relocation mechanism for move of libgvc --- diff --git a/lib/gvc/gvconfig.c b/lib/gvc/gvconfig.c index 2845984ad..ef01ebb69 100644 --- a/lib/gvc/gvconfig.c +++ b/lib/gvc/gvconfig.c @@ -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; } }