From: Thomas Tanner Date: Wed, 24 Mar 1999 22:48:22 +0000 (+0000) Subject: * doc/PLATFORMS: Erez Zadok reported that libtool works on bsdi 4.0.1 X-Git-Tag: release-1-3~102 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0c8344a5031d19b58a8169e59b1570179de7933;p=thirdparty%2Flibtool.git * doc/PLATFORMS: Erez Zadok reported that libtool works on bsdi 4.0.1 * doc/libtool.texi (libltdl): libltdl supports BeOS * libltdl/ltdl.c: partially reverted my previous patch: BeOS will automatically search in ADDON_PATH * ltmain.in: only accept -L paths that exist, support relative -L paths, removed offensive warnings/comments --- diff --git a/ChangeLog b/ChangeLog index 19a1844ec..8f67e9b9c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +1999-03-24 Thomas Tanner + + * doc/PLATFORMS: Erez Zadok reported that libtool works on bsdi 4.0.1 + * doc/libtool.texi (libltdl): libltdl supports BeOS + * libltdl/ltdl.c: partially reverted my previous patch: BeOS will + automatically search in ADDON_PATH + * ltmain.in: only accept -L paths that exist, support relative + -L paths, removed offensive warnings/comments + 1999-03-24 Alexandre Oliva * ltconfig.in (ld_shlibs, amigaos*): disable shared libraries diff --git a/doc/PLATFORMS b/doc/PLATFORMS index 236ff70c7..9fe5cf5bc 100644 --- a/doc/PLATFORMS +++ b/doc/PLATFORMS @@ -19,6 +19,7 @@ hppa1.1-hp-hpux9.07 cc 1.0f ok hppa1.1-hp-hpux9.05 gcc 1.2f ok hppa1.1-hp-hpux9.01 gcc 1.2f ok i*86-*-bsdi4.0 gcc 1.2f ok +i*86-*-bsdi4.0.1 gcc 1.2f ok i*86-*-bsdi3.1 gcc 1.2e NS i*86-*-bsdi3.0 gcc 1.2e NS i*86-*-bsdi2.1 gcc 1.2e NS diff --git a/doc/libtool.texi b/doc/libtool.texi index 6a71725a0..d4a72bdb9 100644 --- a/doc/libtool.texi +++ b/doc/libtool.texi @@ -2599,6 +2599,8 @@ shl_load (HP-UX) @item LoadLibrary (Win16 and Win32) @item +load_add_on (BeOS) +@item GNU DLD (emulates dynamic linking for static libraries) @item libtool's dlpreopen (see @pxref{Dlpreopening}) diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 65272fabd..df93ce077 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -1207,12 +1207,6 @@ lt_dlopen (filename) file = (FILE*) find_file(basename, getenv("LTDL_LIBRARY_PATH"), &dir, 0); -#ifdef __BEOS__ - if (!file) - file = (FILE*) find_file(basename, - getenv("ADDON_PATH"), - &dir, 0); -#endif #ifdef LTDL_SHLIBPATH_VAR if (!file) file = (FILE*) find_file(basename, diff --git a/ltmain.in b/ltmain.in index 8eb7bc594..fed22505f 100644 --- a/ltmain.in +++ b/ltmain.in @@ -1001,13 +1001,21 @@ compiler." -L*) dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` + if test -d "$dir"; then : + else + $echo "$modename: directory \`$dir' does not exist" 1>&2 + exit 1 + fi + # We need an absolute path. case "$dir" in - /* | [A-Za-z]:[/\\]*) - # Add the corresponding hardcode_libdir_flag, if it is not identical. - ;; + /* | [A-Za-z]:[/\\]*) ;; *) - $echo "$modename: \`-L$dir' cannot specify a relative directory" 1>&2 - exit 1 + 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" ;; esac case " $deplibs " in @@ -2040,7 +2048,6 @@ EOF if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then eval flag=\"$thread_safe_flag_spec\" - linkopts="$linkopts $flag" fi @@ -2562,7 +2569,6 @@ static const void *lt_preloaded_setup() { link_command="$compile_var$compile_command$compile_rpath" relink_command="$finalize_var$finalize_command$finalize_rpath" - # AGH! Flame the AIX and HP-UX people for me, will ya? $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 $echo "$modename: \`$output' will be relinked during installation" 1>&2 else @@ -3274,7 +3280,6 @@ libdir='$install_libdir'\ # Replace the output file specification. relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` - $echo "$modename: warning: relinking \`$file' on behalf of your buggy system linker" 1>&2 $show "$relink_command" if $run eval "$relink_command"; then : else