]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c: shlib_ext was declared even if LTDL_SHLIB_EXT
authorThomas Tanner <tanner@gmx.de>
Tue, 23 Mar 1999 14:30:48 +0000 (14:30 +0000)
committerThomas Tanner <tanner@gmx.de>
Tue, 23 Mar 1999 14:30:48 +0000 (14:30 +0000)
  didn't exist
* ltmain.in: don't allow relative run-paths, fixed a typo in a warning,
  ignore -dlopen self for libraries and objects

ChangeLog
libltdl/ltdl.c
ltmain.in

index 0eebd2eb4a318afbbf94fe4d7d1d67f0c0404d7b..0f740f99f3cd57533080acfd3d157f6b30ef5a27 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+1999-03-23 Thomas Tanner  <tanner@gmx.de>
+
+       * libltdl/ltdl.c: shlib_ext was declared even if LTDL_SHLIB_EXT
+         didn't exist
+       * ltmain.in: don't allow relative run-paths, fixed a typo in a warning,
+         ignore -dlopen self for libraries and objects
+
 1999-03-21  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * tests/build-relink.test: if we relink and have hardcode_direct, 
index 221da12374218eb09b7f266fd3110c68ef7b786e..65272fabdef65f7a143fe393236656cf3d5c9c69 100644 (file)
@@ -76,7 +76,9 @@ Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 #define LTDL_SYMBOL_OVERHEAD   5
 
 static const char objdir[] = LTDL_OBJDIR;
+#ifdef LTDL_SHLIB_EXT
 static const char shlib_ext[] = LTDL_SHLIB_EXT;
+#endif
 
 static const char unknown_error[] = "unknown error";
 static const char dlopen_not_supported_error[] = "dlopen support not available";
index d2ca097549e4860dd20cd31c5e5052a11faf2226..8eb7bc594d13386dbb99e3922b90e7357debe4e3 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -883,6 +883,7 @@ compiler."
            elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
              dlself=yes
            else
+             dlself=needless
              export_dynamic=yes
            fi
            prev=
@@ -922,12 +923,8 @@ compiler."
          case "$arg" in
          /* | [A-Za-z]:[/\\]*) ;;
          *)
-           absdir=`cd "$arg" && pwd`
-           if test -z "$absdir"; then
-             $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
-             exit 1
-           fi
-           arg="$absdir"
+           $echo "$modename: only absolute run-paths are allowed" 1>&2
+           exit 1
            ;;
          esac
          if test "$prev" = rpath; then
@@ -1085,12 +1082,8 @@ compiler."
        case "$dir" in
        /* | [A-Za-z]:[/\\]*) ;;
        *)
-         absdir=`cd "$dir" && pwd`
-         if test -z "$absdir"; then
-           $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
-           exit 1
-         fi
-         dir="$absdir"
+         $echo "$modename: only absolute run-paths are allowed" 1>&2
+         exit 1
          ;;
        esac
        case "$xrpath " in
@@ -1283,7 +1276,7 @@ compiler."
          *)
            absdir=`cd "$dir" && pwd`
            if test -z "$absdir"; then
-             $echo "$modename: cannot determine absolute directory name of \`$libdir'" 1>&2
+             $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
              exit 1
            fi
            ;;
@@ -1496,7 +1489,7 @@ compiler."
        $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
       fi
 
-      if test -n "$dlfiles$dlprefiles"; then
+      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
        $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
       fi
 
@@ -1566,7 +1559,7 @@ compiler."
         exit 1
       fi
 
-      if test -n "$dlfiles$dlprefiles"; then
+      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
        $echo "$modename: warning: \`-dlopen' is ignored for libtool libraries" 1>&2
       fi
 
@@ -2118,7 +2111,7 @@ EOF
        $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
       fi
 
-      if test -n "$dlfiles$dlprefiles"; then
+      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
        $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
       fi