From: ellson Date: Tue, 18 Oct 2005 18:42:08 +0000 (+0000) Subject: Fix for case of: builtins, but no dynamic plugins X-Git-Tag: LAST_LIBGRAPH~32^2~7287 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ce6d82380dafbf12edb2232ced24c799fcf9132;p=graphviz Fix for case of: builtins, but no dynamic plugins --- diff --git a/Config.mk b/Config.mk index 80a0b3870..1db3aa47b 100644 --- a/Config.mk +++ b/Config.mk @@ -22,6 +22,10 @@ EXPAT_LIB = -lexpat EXTLIB_INC=-I/usr/include/freetype2 EXTLIB_LIB=-ljpeg -lpng -lfontconfig -lfreetype -lz +# library for libtool dynamic loading +# to enable, uncoment this, and comment out "DISABLE_LTDL" in config.h.old +#LTDL_LIB=-lltdl + ################################################### # Typically, nothing below should be changed. # ################################################### @@ -52,3 +56,4 @@ TK_LIBDIR=$(TKDIR)/lib TK_INCDIR=$(TKDIR)/include VERSION=2.5 +VERSION=2.5 diff --git a/cmd/dot/Makefile.old b/cmd/dot/Makefile.old index a8f0c5186..3f236708f 100644 --- a/cmd/dot/Makefile.old +++ b/cmd/dot/Makefile.old @@ -18,7 +18,7 @@ XLIBS = -L$(LOC_LIB)/pathplan -lpathplan \ -L$(LOC_LIB)/graph -lgraph \ -L$(LOC_LIB)/cdt -lcdt \ -L$(LOC_LIB)/gd -lgd \ - $(EXTLIB_LIB) $(EXPAT_LIB) -lltdl -lm + $(EXTLIB_LIB) $(EXPAT_LIB) $(LTDL_LIB) -lm PLUGS = -L$(LOC_PLUG) -lgvplugin_dot_layout -lgvplugin_neato_layout -lgvplugin_usershape_gd diff --git a/lib/gvc/gvconfig.c b/lib/gvc/gvconfig.c index 9a76bac86..649981a29 100644 --- a/lib/gvc/gvconfig.c +++ b/lib/gvc/gvconfig.c @@ -469,9 +469,11 @@ void gvconfig(GVC_t * gvc, boolean rescan) "cg", NULL, (gvplugin_installed_t *) p); #endif -#ifndef DISABLE_LTDL + /* builtins don't require LTDL */ gvconfig_plugin_install_builtins(gvc); + gvc->config_found = FALSE; +#ifndef DISABLE_LTDL /* see if there are any new plugins */ libdir = gvconfig_libdir(); rc = stat(libdir, &libdir_st);