]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in: temporarily disable dlopen_self when linking with
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Mon, 8 Mar 1999 21:21:55 +0000 (21:21 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Mon, 8 Mar 1999 21:21:55 +0000 (21:21 +0000)
-static or -all-static, until we figure out how to test whether it
works at configure time
* TODO: remember to fix this later

ChangeLog
TODO
ltmain.in

index 693dfa830f5e79a05a68ebd395cd8dd5ef1a1a4f..c6f9bf42383a4178f57aa85bc5d0998b3f467afc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 1999-03-08  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * ltmain.in: temporarily disable dlopen_self when linking with
+       -static or -all-static, until we figure out how to test whether it
+       works at configure time
+       * TODO: remember to fix this later
+
        * tests/build-relink.test: when hell is expected to fail, run it
        within a subshell and redirect stderr to stdout, so that dynamic
        linker errors are only printed in verbose mode
diff --git a/TODO b/TODO
index 59390c5651db3561810c39b2c61d62814cf13f4a..4b6612e6b2e429da982e0eefaca9b53beceba6a2 100644 (file)
--- a/TODO
+++ b/TODO
@@ -37,6 +37,11 @@ so that the size of lt_preloaded_symbols can be reduced.
 In the future:
 **************
 
+* test whether dlopening and self-dlopening work for statically linked
+  programs.  Self-dlopening, for example, is known to fail on DEC
+  OSF/1, for programs compiled with -static.  On other platforms,
+  dlopen may even fail to link.
+
 * Godmar Back writes:
   libltdl uses such stdio functions as fopen, fgets, feof, fclose, and others.
   These functions are not async-signal-safe. While this does not make 
index d7a340ec7a8938ea2500eec2a515842570c378d7..b6382e6f480bdef12f7baa62070270be230a4ba9 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -927,6 +927,10 @@ compiler."
        if test -n "$link_static_flag"; then
          compile_command="$compile_command $link_static_flag"
          finalize_command="$finalize_command $link_static_flag"
+         # Some platforms do not support self-dlopening with static
+         # linking.  Assume self-dlopening does not work in this case
+         # till we figure out how to test it at configure time
+         dlopen_self=no
        fi
        continue
        ;;
@@ -1054,6 +1058,10 @@ compiler."
        if test -z "$pic_flag" && test -n "$link_static_flag"; then
          compile_command="$compile_command $link_static_flag"
          finalize_command="$finalize_command $link_static_flag"
+         # Some platforms do not support self-dlopening with static
+         # linking.  Assume self-dlopening does not work in this case
+         # till we figure out how to test it at configure time
+         dlopen_self=no
        fi
        continue
        ;;