From: Thomas Tanner Date: Fri, 1 Jan 1999 20:01:09 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: automake_1-4~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec45a296801ce46526d56c1ae0908e861fe8d890;p=thirdparty%2Flibtool.git *** empty log message *** --- diff --git a/ChangeLog b/ChangeLog index 8638de468..8d25d25d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +1999-01-01 Thomas Tanner + + * NEWS: new BeOS support + * THANKS: added Joseph Beckenbach + * libltdl/ltdl.h: use dllimport/export on Win32 + +1998-12-31 Joseph Beckenbach III + + * ltconfig.in: added support for BeOS + * ltmain.in (shlibpath_var): added a workaround for + an odd bug in the BeOS R4 sed + 1998-12-31 Thomas Tanner * verified all copyright notices diff --git a/NEWS b/NEWS index d69e4da02..1bfc362e4 100644 --- a/NEWS +++ b/NEWS @@ -1,6 +1,7 @@ NEWS - list of user-visible changes between releases of GNU Libtool New in 1.2e: CVS version: +* Support for BeOS * Improved support for Win32, SysV 4.3 and NetBSD * Various bugfixes diff --git a/THANKS b/THANKS index d90d7f815..7055b7926 100644 --- a/THANKS +++ b/THANKS @@ -20,6 +20,7 @@ Ian Lance Taylor Joel Cannon Joel Klecker Joel N. Weber II +Joseph Beckenbach III Karl Berry Kenneth Albanowski Marc J. Fraioli diff --git a/libltdl/ltdl.h b/libltdl/ltdl.h index d9b993b25..8deacd0a7 100644 --- a/libltdl/ltdl.h +++ b/libltdl/ltdl.h @@ -47,6 +47,16 @@ Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # define lt_ptr_t char* #endif +#if defined(_WIN32) || defined(__CYGWIN__) || defined(__CYGWIN32__) || defined(WIN32) +# ifdef _LTDL_COMPILE_ +# define EXTERN __declspec(dllexport) +# else +# define EXTERN extern __declspec(dllimport) +# endif +#else +# define EXTERN extern +#endif + #ifdef _LTDL_COMPILE_ typedef struct lt_dlhandle_t *lt_dlhandle; #else @@ -54,11 +64,11 @@ typedef lt_ptr_t lt_dlhandle; #endif __BEGIN_DECLS -int lt_dlinit __P((void)); -int lt_dlexit __P((void)); -lt_dlhandle lt_dlopen __P((const char *filename)); -int lt_dlclose __P((lt_dlhandle handle)); -lt_ptr_t lt_dlsym __P((lt_dlhandle handle, const char *name)); +EXTERN int lt_dlinit __P((void)); +EXTERN int lt_dlexit __P((void)); +EXTERN lt_dlhandle lt_dlopen __P((const char *filename)); +EXTERN int lt_dlclose __P((lt_dlhandle handle)); +EXTERN lt_ptr_t lt_dlsym __P((lt_dlhandle handle, const char *name)); __END_DECLS #endif /* !_LTDL_H_ */ diff --git a/ltconfig.in b/ltconfig.in index eb874e04a..063e247e1 100755 --- a/ltconfig.in +++ b/ltconfig.in @@ -580,7 +580,7 @@ if test "$with_gcc" = yes; then link_static_flag='-static' case "$host_os" in - aix3* | aix4* | irix5* | irix6* | osf3* | osf4*) + aix3* | aix4* | beos* | irix5* | irix6* | osf3* | osf4*) # PIC is the default for these OSes. ;; cygwin32* | mingw32* | os2*) @@ -1008,6 +1008,14 @@ if test "$with_gnu_ld" = yes; then hardcode_shlibpath_var=no ;; + beos*) + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then + archive_cmds='$CC -nostart ${wl}-soname $wl$soname -o $lib $libobjs $deplibs' + else + ld_shlibs=no + fi + ;; + cygwin32* | mingw32*) if test "$with_gcc" = yes; then # hardcode_libdir_flag_spec is actually meaningless, as there is @@ -1590,6 +1598,12 @@ amigaos*) finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' ;; +beos*) + library_names_spec='${libname}.so' + dynamic_linker="$host_os ld.so" + shlibpath_var=LIBRARY_PATH + ;; + bsdi4*) version_type=linux library_names_spec='${libname}.so.$major ${libname}.so' diff --git a/ltmain.in b/ltmain.in index 17b8e84ba..513756409 100644 --- a/ltmain.in +++ b/ltmain.in @@ -2129,7 +2129,8 @@ else $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" # Some systems cannot cope with colon-terminated $shlibpath_var - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/:*\$//'\` + # The second colon is a workaround for a bug in BeOS R4 sed + $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` export $shlibpath_var "