summaryrefslogtreecommitdiff
path: root/libguile/guile.c
diff options
context:
space:
mode:
authorMarius Vollmer <mvo@zagadka.de>2000-01-10 00:37:47 +0000
committerMarius Vollmer <mvo@zagadka.de>2000-01-10 00:37:47 +0000
commit4ed6bae2fcb1ccb20de478842aa49e5fe7f751f1 (patch)
tree96d82eb74d75b7015d9b1793e4b4a2ca9460fffe /libguile/guile.c
parent4feb69af5a780a6a7fde68f04bff593364a95fa1 (diff)
downloadguile-4ed6bae2fcb1ccb20de478842aa49e5fe7f751f1.tar.gz
* guile.c: register preloaded modules
Diffstat (limited to 'libguile/guile.c')
-rw-r--r--libguile/guile.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libguile/guile.c b/libguile/guile.c
index b41318ce2..868442377 100644
--- a/libguile/guile.c
+++ b/libguile/guile.c
@@ -48,6 +48,13 @@
#include <libguile.h>
+#ifdef HAVE_CONFIG_H
+#include <scmconfig.h>
+#endif
+#ifdef DYNAMIC_LINKING
+#include <ltdl.h>
+#endif
+
/* Debugger interface (don't change the order of the following lines) */
#define GDB_TYPE SCM
#include <libguile/gdb_interface.h>
@@ -63,6 +70,9 @@ inner_main (void *closure, int argc, char **argv)
int
main (int argc, char **argv)
{
+#ifdef DYNAMIC_LINKING
+ LTDL_SET_PRELOADED_SYMBOLS ();
+#endif
scm_boot_guile (argc, argv, inner_main, 0);
return 0; /* never reached */
}