+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,
#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";
elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
dlself=yes
else
+ dlself=needless
export_dynamic=yes
fi
prev=
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
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
*)
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
;;
$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
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
$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