From: Craig Dooley Date: Wed, 26 Jan 2005 17:40:43 +0000 (+0000) Subject: * NEWS, m4/libtool.m4, config/ltmain.m4sh [dragonfly]: X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=528934c16731102b18ce44ec453c54b17fc6efaf;p=thirdparty%2Flibtool.git * NEWS, m4/libtool.m4, config/ltmain.m4sh [dragonfly]: Add support for DragonFly. --- diff --git a/ChangeLog b/ChangeLog index f73323195..1fb53ccf3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-01-26 Craig Dooley , + Ralf Wildenhues + + * NEWS, m4/libtool.m4, config/ltmain.m4sh [dragonfly]: + Add support for DragonFly. + 2005-01-25 Ralf Wildenhues * config/ltmain.m4sh: Fix endless loop in cmdline parsing. diff --git a/NEWS b/NEWS index 38ac40308..e21add1ca 100644 --- a/NEWS +++ b/NEWS @@ -5,6 +5,7 @@ New in 1.9h: 2004-??-??; CVS version 1.9g, Libtool team: * Fix libltdl on static platforms. * Support for linux-dietlibc (`diet' as well as `diet-dyn', separately). * `libtoolize --install' now also installs `install-sh'. +* Support (mostly) for DragonFly BSD. New in 1.9f: 2004-10-23; CVS version 1.9e, Libtool team: * Calculate dllsearchpath correctly for wrapper scripts on cygwin. diff --git a/config/ltmain.m4sh b/config/ltmain.m4sh index ea99a8327..26519b26e 100644 --- a/config/ltmain.m4sh +++ b/config/ltmain.m4sh @@ -2614,7 +2614,7 @@ func_mode_link () # These systems don't actually have a C library (as such) test "X$arg" = "X-lc" && continue ;; - *-*-openbsd* | *-*-freebsd*) + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; @@ -2625,7 +2625,7 @@ func_mode_link () esac elif test "X$arg" = "X-lc_r"; then case $host in - *-*-openbsd* | *-*-freebsd*) + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc_r directly, use -pthread flag. continue ;; @@ -4514,7 +4514,7 @@ func_mode_link () *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; - *-*-openbsd* | *-*-freebsd*) + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) # Do not include libc due to us having libc/libc_r. test "X$arg" = "X-lc" && continue ;; diff --git a/m4/libtool.m4 b/m4/libtool.m4 index 6e166be1d..32a273dc6 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -1149,7 +1149,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl lt_cv_sys_max_cmd_len=8192; ;; - netbsd* | freebsd* | openbsd* | darwin* ) + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` @@ -1853,7 +1853,9 @@ kfreebsd*-gnu) dynamic_linker='GNU ld.so' ;; -freebsd*) +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || $ECHO aout` version_type=freebsd-$objformat case $version_type in @@ -2507,13 +2509,13 @@ darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; -freebsd* | kfreebsd*-gnu) +freebsd* | kfreebsd*-gnu | dragonfly*) if $ECHO __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' lt_cv_file_magic_cmd=/usr/bin/file lt_cv_file_magic_test_file=`$ECHO /usr/lib/libc.so.*` ;; @@ -3058,7 +3060,7 @@ m4_if([$1], [CXX], [ ;; esac ;; - freebsd* | kfreebsd*-gnu) + freebsd* | kfreebsd*-gnu | dragonfly*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) @@ -3978,7 +3980,7 @@ _LT_EOF ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | kfreebsd*-gnu) + freebsd* | kfreebsd*-gnu | dragonfly*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes @@ -4957,7 +4959,7 @@ if test "$_lt_caught_CXX_error" != yes; then _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; - freebsd* | kfreebsd*-gnu) + freebsd* | kfreebsd*-gnu | dragonfly*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes