OSDN Git Service

2004-04-29 Dave Brolley <brolley@redhat.com>
authorbrolley <brolley>
Thu, 29 Apr 2004 20:26:58 +0000 (20:26 +0000)
committerbrolley <brolley>
Thu, 29 Apr 2004 20:26:58 +0000 (20:26 +0000)
        * compConfig.cxx (register_dso): Check dl_handle before attempting to
        open ".a".
        * Makefile.am (libconfig_la_DEPENDENCIES): Add @LIBLTDL@.
        * Makefile.in: Regenerated.

sid/component/cfgroot/ChangeLog
sid/component/cfgroot/Makefile.am
sid/component/cfgroot/Makefile.in
sid/component/cfgroot/compConfig.cxx

index 4bef1cf..33b34fe 100644 (file)
@@ -1,3 +1,10 @@
+2004-04-29  Dave Brolley  <brolley@redhat.com>
+
+       * compConfig.cxx (register_dso): Check dl_handle before attempting to
+       open ".a".
+       * Makefile.am (libconfig_la_DEPENDENCIES): Add @LIBLTDL@.
+       * Makefile.in: Regenerated.
+
 2002-05-30  Frank Ch. Eigler  <fche@redhat.com>
 
        * compConfig.cxx (stop): Store incoming code in new "stop-code"
index a06b831..db92841 100644 (file)
@@ -12,6 +12,7 @@ INCLUDES = -I. -I../../include -I$(srcdir)/../../include -I$(srcdir)/libltdl
 libconfig_la_SOURCES = compConfig.cxx
 libconfig_la_LDFLAGS = -module -no-undefined
 libconfig_la_LIBADD = @LIBLTDL@
+libconfig_la_DEPENDENCIES = @LIBLTDL@
 
 pkgdata_DATA = sid-control-cfgroot.txt
 
index 653f50d..7edffcf 100644 (file)
@@ -102,6 +102,7 @@ INCLUDES = -I. -I../../include -I$(srcdir)/../../include -I$(srcdir)/libltdl
 libconfig_la_SOURCES = compConfig.cxx
 libconfig_la_LDFLAGS = -module -no-undefined
 libconfig_la_LIBADD = @LIBLTDL@
+libconfig_la_DEPENDENCIES = @LIBLTDL@
 
 pkgdata_DATA = sid-control-cfgroot.txt
 
@@ -121,7 +122,6 @@ DEFS = @DEFS@ -I. -I$(srcdir) -I.
 CPPFLAGS = @CPPFLAGS@
 LDFLAGS = @LDFLAGS@
 LIBS = @LIBS@
-libconfig_la_DEPENDENCIES = 
 libconfig_la_OBJECTS =  compConfig.lo
 CXXFLAGS = @CXXFLAGS@
 CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
index e49abf0..3240bf1 100644 (file)
@@ -726,7 +726,8 @@ cfgroot_component::register_dso(const string& dso_name, const string& _symbol_na
   dl_handle = lt_dlopen(dso_name.c_str());
 
   // Second, try ".la"->".a" kludge.
-  if ((dso_name.length() > 3) &&
+  if (! dl_handle &&
+      (dso_name.length() > 3) &&
       (dso_name[dso_name.length()-3] == '.') &&
       (dso_name[dso_name.length()-2] == 'l') &&
       (dso_name[dso_name.length()-1] == 'a'))