[PATCH] libtool: remove OpenBSD support for non-shared and a.out archs

2024-01-16 Thread Brad Smith
libtool: remove OpenBSD support for non-shared and a.out archs

OpenBSD stopped supporting the last non-shared arch 8 years ago
and stopped supporting a.out 10.5 years ago.

* m4/libtool.m4: Remove support for a.out and non-shared archs.
---
 m4/libtool.m4 | 59 ---
 1 file changed, 18 insertions(+), 41 deletions(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 4b84ce96..371c2250 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -2948,11 +2948,7 @@ openbsd*)
   version_type=sunos
   sys_lib_dlsearch_path_spec=/usr/lib
   need_lib_prefix=no
-  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
-need_version=no
-  else
-need_version=yes
-  fi
+  need_version=no
   library_names_spec='$libname$release$shared_ext$versuffix 
$libname$shared_ext$versuffix'
   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   shlibpath_var=LD_LIBRARY_PATH
@@ -3585,11 +3581,7 @@ newos6*)
   ;;
 
 openbsd*)
-  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
-lt_cv_deplibs_check_method='match_pattern 
/lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
-  else
-lt_cv_deplibs_check_method='match_pattern 
/lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
-  fi
+  lt_cv_deplibs_check_method='match_pattern 
/lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
   ;;
 
 osf3* | osf4* | osf5*)
@@ -5844,22 +5836,13 @@ _LT_EOF
   ;;
 
 openbsd*)
-  if test -f /usr/libexec/ld.so; then
-   _LT_TAGVAR(hardcode_direct, $1)=yes
-   _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-   _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
-   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs 
$deplibs $compiler_flags'
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib 
$libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
-   else
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs 
$deplibs $compiler_flags'
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
-   fi
-  else
-   _LT_TAGVAR(ld_shlibs, $1)=no
-  fi
+  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs 
$deplibs $compiler_flags'
+  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib 
$libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
+  _LT_TAGVAR(hardcode_direct, $1)=yes
+  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
+  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
   ;;
 
 os2*)
@@ -7137,21 +7120,15 @@ if test yes != "$_lt_caught_CXX_error"; then
;;
 
   openbsd*)
-   if test -f /usr/libexec/ld.so; then
- _LT_TAGVAR(hardcode_direct, $1)=yes
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects 
$libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
-   _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag 
$predep_objects $libobjs $deplibs $postdep_objects $compiler_flags 
$wl-retain-symbols-file,$export_symbols -o $lib'
-   _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
-   _LT_TAGVAR(whole_archive_flag_spec, 
$1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
- fi
- output_verbose_link_cmd=func_echo_all
-   else
- _LT_TAGVAR(ld_shlibs, $1)=no
-   fi
+_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects 
$libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag 
$predep_objects $libobjs $deplibs $postdep_objects $compiler_flags 
$wl-retain-symbols-file,$export_symbols -o $lib'
+_LT_TAGVAR(hardcode_direct, $1)=yes
+_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
+_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
+_LT_TAGVAR(whole_archive_flag_spec, 
$1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
+output_verbose_link_cmd=func_echo_all
;;
 
   osf3* | osf4* | osf5*)
-- 
2.43.0




[PATCH] libtool: remove OpenBSD specific performance hack for ranlib

2024-01-16 Thread Brad Smith
libtool: remove OpenBSD specific performance hack for ranlib

The -t flag was used as a performance hack for ranlib. The flag was
supported by the GNU toolchain, but is a no-op with the LLVM toolchain.

* m4/libtool.m4: Remove use of -t flag with ranlib.
---
 m4/libtool.m4 | 9 +
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 4b84ce96..7ab5fe57 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -1555,15 +1555,8 @@ old_postinstall_cmds='chmod 644 $oldlib'
 old_postuninstall_cmds=
 
 if test -n "$RANLIB"; then
-  case $host_os in
-  openbsd*)
-old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
-;;
-  *)
-old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
-;;
-  esac
   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
+  old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
 fi
 
 case $host_os in
-- 
2.43.0




[PATCH] libtool: remove bitrig support.

2024-01-15 Thread Brad Smith
libtool: remove bitrig support.

Bitrig has been defunct for 7 years.

* build-aux/ltmain.in (func_mode_link): Remove bitrig support.
* m4/libtool.m4 (_LT_CMD_OLD_ARCHIVE, LT_CMD_MAX_LEN)
(_LT_SYS_DYNAMIC_LINKER, _LT_CHECK_MAGIC_METHOD)
(_LT_LINKER_SHLIBS, _LT_LANG_CXX_CONFIG): Ditto.
* m4/ltdl.m4 (LT_SYS_DLOPEN_DEPLIBS): Ditto.
* NEWS: Updated.
---
 NEWS|  3 +++
 build-aux/ltmain.in |  4 ++--
 m4/libtool.m4   | 14 +++---
 m4/ltdl.m4  |  3 ---
 4 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/NEWS b/NEWS
index 93ade4df..79f135a2 100644
--- a/NEWS
+++ b/NEWS
@@ -2,6 +2,9 @@ NEWS - list of user-visible changes between releases of GNU 
Libtool
 
 * Noteworthy changes in release ?.? (-??-??) [?]
 
+** Changes in supported systems or compilers:
+
+  - Removed support for bitrig.
 
 * Noteworthy changes in release 2.4.7 (2022-03-16) [stable]
 
diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index d5157a8d..d996f798 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -5134,7 +5134,7 @@ func_mode_link ()
# These systems don't actually have a C library (as such)
test X-lc = "X$arg" && continue
;;
- *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | 
*-*-midnightbsd*)
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*)
# Do not include libc due to us having libc/libc_r.
test X-lc = "X$arg" && continue
;;
@@ -5154,7 +5154,7 @@ func_mode_link ()
  esac
elif test X-lc_r = "X$arg"; then
 case $host in
-*-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | 
*-*-midnightbsd*)
+*-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*)
   # Do not include libc_r directly, use -pthread flag.
   continue
   ;;
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 695ccac4..9b1a4d81 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -1556,7 +1556,7 @@ old_postuninstall_cmds=
 
 if test -n "$RANLIB"; then
   case $host_os in
-  bitrig* | openbsd*)
+  openbsd*)
 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 ;;
   *)
@@ -1724,7 +1724,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 lt_cv_sys_max_cmd_len=8192;
 ;;
 
-  bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | 
openbsd*)
+  darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
 # 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`
@@ -2943,7 +2943,7 @@ newsos6)
   dynamic_linker='ldqnx.so'
   ;;
 
-openbsd* | bitrig*)
+openbsd*)
   version_type=sunos
   sys_lib_dlsearch_path_spec=/usr/lib
   need_lib_prefix=no
@@ -3583,7 +3583,7 @@ newos6*)
   lt_cv_deplibs_check_method=pass_all
   ;;
 
-openbsd* | bitrig*)
+openbsd*)
   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
 lt_cv_deplibs_check_method='match_pattern 
/lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
   else
@@ -5020,7 +5020,7 @@ dnl Note also adjust exclude_expsyms for C++ above.
 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
 with_gnu_ld=yes
 ;;
-  openbsd* | bitrig*)
+  openbsd*)
 with_gnu_ld=no
 ;;
   esac
@@ -5842,7 +5842,7 @@ _LT_EOF
 *nto* | *qnx*)
   ;;
 
-openbsd* | bitrig*)
+openbsd*)
   if test -f /usr/libexec/ld.so; then
_LT_TAGVAR(hardcode_direct, $1)=yes
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
@@ -7136,7 +7136,7 @@ if test yes != "$_lt_caught_CXX_error"; then
 _LT_TAGVAR(ld_shlibs, $1)=yes
;;
 
-  openbsd* | bitrig*)
+  openbsd*)
if test -f /usr/libexec/ld.so; then
  _LT_TAGVAR(hardcode_direct, $1)=yes
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
diff --git a/m4/ltdl.m4 b/m4/ltdl.m4
index f631a00c..0c43799c 100644
--- a/m4/ltdl.m4
+++ b/m4/ltdl.m4
@@ -466,9 +466,6 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
   ;;
 esac
 ;;
-  bitrig*)
-lt_cv_sys_dlopen_deplibs=yes
-;;
   darwin*)
 # Assuming the user has installed a libdl from somewhere, this is true
 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
-- 
2.43.0




[patch #9442] Add flang (LLVM-based compiler) support

2024-01-13 Thread Brad Smith
Follow-up Comment #2, patch#9442 (group libtool):

This should be checking for *flang* to also match for the current name of
flang-new, though hopefully for LLVM 18 that'll change to flang, but not yet.


___

Reply to this item at:

  

___
Message sent via Savannah
https://savannah.gnu.org/




Re: [PATCH] Further update/simplify OpenBSD support

2022-08-20 Thread Brad Smith

On 8/15/2022 10:47 AM, Alex Ameen wrote:
Thanks for your submission. I'll run it through the test suite this 
week and keep you posted.


Any update on this?



[PATCH] Further update/simplify OpenBSD support

2022-08-13 Thread Brad Smith
Further update/simplify OpenBSD support

* m4/libtool.m4: Remove long obsolete support for a.out and support
for archs not supporting shared libaries
---
 m4/libtool.m4 | 61 ---
 1 file changed, 19 insertions(+), 42 deletions(-)

diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 79a2451e..fa424ec6 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -1557,7 +1557,7 @@ old_postuninstall_cmds=
 
 if test -n "$RANLIB"; then
   case $host_os in
-  bitrig* | openbsd*)
+  bitrig*)
 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
 ;;
   *)
@@ -2948,11 +2948,7 @@ openbsd* | bitrig*)
   version_type=sunos
   sys_lib_dlsearch_path_spec=/usr/lib
   need_lib_prefix=no
-  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
-need_version=no
-  else
-need_version=yes
-  fi
+  need_version=no
   library_names_spec='$libname$release$shared_ext$versuffix 
$libname$shared_ext$versuffix'
   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
   shlibpath_var=LD_LIBRARY_PATH
@@ -3585,11 +3581,7 @@ newos6*)
   ;;
 
 openbsd* | bitrig*)
-  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
-lt_cv_deplibs_check_method='match_pattern 
/lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
-  else
-lt_cv_deplibs_check_method='match_pattern 
/lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
-  fi
+  lt_cv_deplibs_check_method='match_pattern 
/lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
   ;;
 
 osf3* | osf4* | osf5*)
@@ -5838,22 +5830,13 @@ _LT_EOF
   ;;
 
 openbsd* | bitrig*)
-  if test -f /usr/libexec/ld.so; then
-   _LT_TAGVAR(hardcode_direct, $1)=yes
-   _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
-   _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
-   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs 
$deplibs $compiler_flags'
- _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib 
$libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
- _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
-   else
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs 
$deplibs $compiler_flags'
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
-   fi
-  else
-   _LT_TAGVAR(ld_shlibs, $1)=no
-  fi
+  _LT_TAGVAR(hardcode_direct, $1)=yes
+  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs 
$deplibs $compiler_flags'
+  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib 
$libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
+  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
+  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
   ;;
 
 os2*)
@@ -7132,21 +7115,15 @@ if test yes != "$_lt_caught_CXX_error"; then
;;
 
   openbsd* | bitrig*)
-   if test -f /usr/libexec/ld.so; then
- _LT_TAGVAR(hardcode_direct, $1)=yes
- _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
- _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
- _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects 
$libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
-   _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag 
$predep_objects $libobjs $deplibs $postdep_objects $compiler_flags 
$wl-retain-symbols-file,$export_symbols -o $lib'
-   _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
-   _LT_TAGVAR(whole_archive_flag_spec, 
$1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
- fi
- output_verbose_link_cmd=func_echo_all
-   else
- _LT_TAGVAR(ld_shlibs, $1)=no
-   fi
+   _LT_TAGVAR(hardcode_direct, $1)=yes
+   _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+   _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+   _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects 
$libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
+   _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
+   _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag 
$predep_objects $libobjs $deplibs $postdep_objects $compiler_flags 
$wl-retain-symbols-file,$export_symbols -o $lib'
+   _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
+   _LT_TAGVAR(whole_archive_flag_spec, 
$1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
+   output_verbose_link_cmd=func_echo_all
;;
 
   osf3* | osf4* | osf5*)
-- 
2.37.1




Re: [PATCH] Accept LLD as a GNU ld compatible linker

2020-04-04 Thread Brad Smith

On 4/4/2020 12:40 AM, Fangrui Song wrote:


The ELF port of LLD (the LLVM linker) is a drop-in replacement for GNU
ld and is widely used nowadays.

https://reviews.llvm.org/D31199 added a User-Agent style hack to make
libtool recognize lld as a GNU ld compatible linker, but it would be
nice to support the "LLD" version string directly so that LLD can
eventually get rid of the hack.


libtool already works fine as is without the patch. The "hack" will never be
removed.




Re: [PATCH] Add Bitrig support

2013-01-02 Thread Brad Smith
On Wed, Jan 02, 2013 at 01:31:15AM +0700, Gary V. Vaughan wrote:
 Hi Brad,
 
 On 29 Dec 2012, at 08:50, Brad Smith b...@comstyle.com wrote:
  On Tue, Aug 21, 2012 at 11:50:21PM -0400, Brad Smith wrote:
  The following diff adds support for Bitrig, which is a
  fork of OpenBSD.
  
  ping.
 
 Thanks for the patch, and sorry for the delay in reviewing it.
 
 The patch content looks innocuous enough to me, and I'd like to commit
 it to master... but first, would you mind regenerating agaist current
 git master (ltmain.m4sh does not exist any more!), and also writing a
 commit log entry suitable for inclusion in the generated ChangeLog
 file at release time?

How about the following?


2013-01-02  Brad Smith  b...@comstyle.com

* NEWS, build-aux/ltmain.in, m4/libtool.m4, m4/ltdl.m4,
tests/deplibs-ident.at [bitrig]: Add support for Bitrig.


diff --git a/build-aux/ltmain.in b/build-aux/ltmain.in
index 7201f6c..573dfbe 100644
--- a/build-aux/ltmain.in
+++ b/build-aux/ltmain.in
@@ -5031,7 +5031,7 @@ func_mode_link ()
# These systems don't actually have a C library (as such)
test X-lc = X$arg  continue
;;
- *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
# Do not include libc due to us having libc/libc_r.
test X-lc = X$arg  continue
;;
@@ -7061,7 +7061,7 @@ func_mode_link ()
  *-*-netbsd*)
# Don't link with libc until the a.out ld.so is fixed.
;;
- *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
# Do not include libc due to us having libc/libc_r.
;;
  *-*-sco3.2v5* | *-*-sco5v6*)
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 7255906..60f56d8 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -1472,7 +1472,7 @@ old_postuninstall_cmds=
 
 if test -n $RANLIB; then
   case $host_os in
-  openbsd*)
+  openbsd* | bitrig*)
 old_postinstall_cmds=$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib
 ;;
   *)
@@ -1640,7 +1640,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 lt_cv_sys_max_cmd_len=8192;
 ;;
 
-  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
+  netbsd* | freebsd* | openbsd* | darwin* | dragonfly* | bitrig*)
 # 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`
@@ -2713,7 +2713,7 @@ newsos6)
   dynamic_linker='ldqnx.so'
   ;;
 
-openbsd*)
+openbsd* | bitrig*)
   version_type=sunos
   sys_lib_dlsearch_path_spec=/usr/lib
   need_lib_prefix=no
@@ -3283,7 +3283,7 @@ newos6*)
   lt_cv_deplibs_check_method=pass_all
   ;;
 
-openbsd*)
+openbsd* | bitrig*)
   if test -z `echo __ELF__ | $CC -E - | $GREP __ELF__`; then
 lt_cv_deplibs_check_method='match_pattern 
/lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
   else
@@ -4666,7 +4666,7 @@ dnl Note also adjust exclude_expsyms for C++ above.
 # we just hope/assume this is gcc and not c89 (= MSVC++)
 with_gnu_ld=yes
 ;;
-  openbsd*)
+  openbsd* | bitrig*)
 with_gnu_ld=no
 ;;
   esac
@@ -5395,7 +5395,7 @@ _LT_EOF
 *nto* | *qnx*)
   ;;
 
-openbsd*)
+openbsd* | bitrig*)
   if test -f /usr/libexec/ld.so; then
_LT_TAGVAR(hardcode_direct, $1)=yes
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
@@ -6587,7 +6587,7 @@ if test yes != $_lt_caught_CXX_error; then
 _LT_TAGVAR(ld_shlibs, $1)=yes
;;
 
-  openbsd*)
+  openbsd* | bitrig*)
if test -f /usr/libexec/ld.so; then
  _LT_TAGVAR(hardcode_direct, $1)=yes
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
diff --git a/m4/ltdl.m4 b/m4/ltdl.m4
index 5750f15..a22e032 100644
--- a/m4/ltdl.m4
+++ b/m4/ltdl.m4
@@ -496,7 +496,7 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
   netbsd*)
 lt_cv_sys_dlopen_deplibs=yes
 ;;
-  openbsd*)
+  openbsd* | bitrig*)
 lt_cv_sys_dlopen_deplibs=yes
 ;;
   osf[[1234]]*)
diff --git a/tests/deplibs-ident.at b/tests/deplibs-ident.at
index fc1ff0c..8c49551 100644
--- a/tests/deplibs-ident.at
+++ b/tests/deplibs-ident.at
@@ -68,7 +68,7 @@ int main() { return a1() + a2() + a3() + c(); }
   [0],[stdout],[ignore])
   AT_CHECK([$EGREP 'cee.*cee' stdout], 1, [ignore], [ignore])
   AT_XFAIL_IF([case $host in
- *-*-aix*|hppa*-*-hpux*|*-*-interix*|*-*-openbsd*) false;;
+ *-*-aix*|hppa*-*-hpux*|*-*-interix*|*-*-openbsd*|*-*-bitrig*) 
false;;
  *):;;
esac])
   dnl This is currently broken in libtool
diff --git a/NEWS b/NEWS
index 8e4278e..adda1d4 100644
--- a/NEWS
+++ b/NEWS
@@ -34,6 +34,10 @@ NEWS - list of user-visible changes between releases of GNU 
Libtool
 
 make check-local TESTSUITEFLAGS='-k !expensive'
 
+* Changes in supported systems or compilers:
+
+  - Support for Bitrig

Re: [PATCH] Add Bitrig support

2013-01-02 Thread Brad Smith
On Thu, Jan 03, 2013 at 02:31:25PM +0700, Gary V. Vaughan wrote:
 Hi Brad,
 
 On 2 Jan 2013, at 15:17, Brad Smith b...@comstyle.com wrote:
  On Wed, Jan 02, 2013 at 01:31:15AM +0700, Gary V. Vaughan wrote:
  The patch content looks innocuous enough to me, and I'd like to commit
  it to master... but first, would you mind regenerating agaist current
  git master (ltmain.m4sh does not exist any more!), and also writing a
  commit log entry suitable for inclusion in the generated ChangeLog
  file at release time?
  
  How about the following?
  [[patch content snipped]]
 
 Thanks, yes that's much easier to apply.
 
 I took the liberty of editing the patched code very lightly to maintain
 alphabetical ordering where possible, and your tweaking your NEWS and
 ChangeLog entries to match existing style.  The git commit hook will post
 that version to libtool-com...@gnu.org presently so you can compare.
 
 Please let me know if I broke anything during editing.

Ok, I will do. Thanks.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




Re: [PATCH] Add Bitrig support

2012-12-28 Thread Brad Smith
On Tue, Aug 21, 2012 at 11:50:21PM -0400, Brad Smith wrote:
 The following diff adds support for Bitrig, which is a
 fork of OpenBSD.
 
ping.
 
 diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh
 index 1d71f0e..28398fd 100644
 --- a/build-aux/ltmain.m4sh
 +++ b/build-aux/ltmain.m4sh
 @@ -4849,7 +4849,7 @@ func_mode_link ()
   # These systems don't actually have a C library (as such)
   test X-lc = X$arg  continue
   ;;
 -   *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
 +   *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
   # Do not include libc due to us having libc/libc_r.
   test X-lc = X$arg  continue
   ;;
 @@ -6879,7 +6879,7 @@ func_mode_link ()
 *-*-netbsd*)
   # Don't link with libc until the a.out ld.so is fixed.
   ;;
 -   *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
 +   *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
   # Do not include libc due to us having libc/libc_r.
   ;;
 *-*-sco3.2v5* | *-*-sco5v6*)
 diff --git a/m4/libtool.m4 b/m4/libtool.m4
 index bd0bb9e..1b5012f 100644
 --- a/m4/libtool.m4
 +++ b/m4/libtool.m4
 @@ -1474,7 +1474,7 @@ old_postuninstall_cmds=
  
  if test -n $RANLIB; then
case $host_os in
 -  openbsd*)
 +  openbsd* | bitrig*)
  old_postinstall_cmds=$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib
  ;;
*)
 @@ -1642,7 +1642,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  lt_cv_sys_max_cmd_len=8192;
  ;;
  
 -  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 +  netbsd* | freebsd* | openbsd* | darwin* | dragonfly* | bitrig*)
  # 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`
 @@ -2715,7 +2715,7 @@ newsos6)
dynamic_linker='ldqnx.so'
;;
  
 -openbsd*)
 +openbsd* | bitrig*)
version_type=sunos
sys_lib_dlsearch_path_spec=/usr/lib
need_lib_prefix=no
 @@ -3286,7 +3286,7 @@ newos6*)
lt_cv_deplibs_check_method=pass_all
;;
  
 -openbsd*)
 +openbsd* | bitrig*)
if test -z `echo __ELF__ | $CC -E - | $GREP __ELF__`; then
  lt_cv_deplibs_check_method='match_pattern 
 /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
else
 @@ -4632,7 +4632,7 @@ dnl Note also adjust exclude_expsyms for C++ above.
  # we just hope/assume this is gcc and not c89 (= MSVC++)
  with_gnu_ld=yes
  ;;
 -  openbsd*)
 +  openbsd* | bitrig*)
  with_gnu_ld=no
  ;;
esac
 @@ -5361,7 +5361,7 @@ _LT_EOF
  *nto* | *qnx*)
;;
  
 -openbsd*)
 +openbsd* | bitrig*)
if test -f /usr/libexec/ld.so; then
   _LT_TAGVAR(hardcode_direct, $1)=yes
   _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 @@ -6553,7 +6553,7 @@ if test yes != $_lt_caught_CXX_error; then
  _LT_TAGVAR(ld_shlibs, $1)=yes
   ;;
  
 -  openbsd*)
 +  openbsd* | bitrig*)
   if test -f /usr/libexec/ld.so; then
 _LT_TAGVAR(hardcode_direct, $1)=yes
 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 diff --git a/m4/ltdl.m4 b/m4/ltdl.m4
 index 6cb5727..9b2a535 100644
 --- a/m4/ltdl.m4
 +++ b/m4/ltdl.m4
 @@ -496,7 +496,7 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
netbsd*)
  lt_cv_sys_dlopen_deplibs=yes
  ;;
 -  openbsd*)
 +  openbsd* | bitrig*)
  lt_cv_sys_dlopen_deplibs=yes
  ;;
osf[[1234]]*)
 diff --git a/tests/deplibs-ident.at b/tests/deplibs-ident.at
 index 5758311..c47586a 100644
 --- a/tests/deplibs-ident.at
 +++ b/tests/deplibs-ident.at
 @@ -67,7 +67,7 @@ int main() { return a1() + a2() + a3() + c(); }
  [0],[stdout],[ignore])
AT_CHECK([$EGREP 'cee.*cee' stdout], 1, [ignore], [ignore])
AT_XFAIL_IF([case $host in
 - *-*-aix*|hppa*-*-hpux*|*-*-interix*|*-*-openbsd*) false;;
 + 
 *-*-aix*|hppa*-*-hpux*|*-*-interix*|*-*-openbsd*|*-*-bitrig*) false;;
   *):;;
 esac])
dnl This is currently broken in libtool
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 
 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




Re: [PATCH] Add Bitrig support

2012-11-16 Thread Brad Smith
On Fri, Nov 16, 2012 at 08:39:18AM -0700, Eric Blake wrote:
 On 11/15/2012 08:29 PM, Brad Smith wrote:
  On Thu, Sep 20, 2012 at 11:58:20PM -0400, Brad Smith wrote:
  On Thu, Aug 30, 2012 at 10:56:15AM -0400, Brad Smith wrote:
  On Tue, Aug 21, 2012 at 11:50:21PM -0400, Brad Smith wrote:
  The following diff adds support for Bitrig, which is a
  fork of OpenBSD.
   
  Any comments?
 
  ping.
  
  Is this project dead?
 
 No, but it does see rather sporadic bursts of activity when actual
 maintainers have time free from their daily routines.  Your patch hasn't
 been forgotten, and gentle pings do help.  Alas, I'm not one of the
 actual maintainers.

Ok, thanks for the response.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




Re: [PATCH] Add Bitrig support

2012-11-15 Thread Brad Smith
On Thu, Sep 20, 2012 at 11:58:20PM -0400, Brad Smith wrote:
 On Thu, Aug 30, 2012 at 10:56:15AM -0400, Brad Smith wrote:
  On Tue, Aug 21, 2012 at 11:50:21PM -0400, Brad Smith wrote:
   The following diff adds support for Bitrig, which is a
   fork of OpenBSD.
   
  Any comments?
 
 ping.

Is this project dead?

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




Re: [PATCH] Add Bitrig support

2012-09-20 Thread Brad Smith
On Thu, Aug 30, 2012 at 10:56:15AM -0400, Brad Smith wrote:
 On Tue, Aug 21, 2012 at 11:50:21PM -0400, Brad Smith wrote:
  The following diff adds support for Bitrig, which is a
  fork of OpenBSD.
  
 Any comments?

ping.

  diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh
  index 1d71f0e..28398fd 100644
  --- a/build-aux/ltmain.m4sh
  +++ b/build-aux/ltmain.m4sh
  @@ -4849,7 +4849,7 @@ func_mode_link ()
  # These systems don't actually have a C library (as such)
  test X-lc = X$arg  continue
  ;;
  - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
  # Do not include libc due to us having libc/libc_r.
  test X-lc = X$arg  continue
  ;;
  @@ -6879,7 +6879,7 @@ func_mode_link ()
*-*-netbsd*)
  # Don't link with libc until the a.out ld.so is fixed.
  ;;
  - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
  # Do not include libc due to us having libc/libc_r.
  ;;
*-*-sco3.2v5* | *-*-sco5v6*)
  diff --git a/m4/libtool.m4 b/m4/libtool.m4
  index bd0bb9e..1b5012f 100644
  --- a/m4/libtool.m4
  +++ b/m4/libtool.m4
  @@ -1474,7 +1474,7 @@ old_postuninstall_cmds=
   
   if test -n $RANLIB; then
 case $host_os in
  -  openbsd*)
  +  openbsd* | bitrig*)
   old_postinstall_cmds=$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib
   ;;
 *)
  @@ -1642,7 +1642,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
   lt_cv_sys_max_cmd_len=8192;
   ;;
   
  -  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  +  netbsd* | freebsd* | openbsd* | darwin* | dragonfly* | bitrig*)
   # 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`
  @@ -2715,7 +2715,7 @@ newsos6)
 dynamic_linker='ldqnx.so'
 ;;
   
  -openbsd*)
  +openbsd* | bitrig*)
 version_type=sunos
 sys_lib_dlsearch_path_spec=/usr/lib
 need_lib_prefix=no
  @@ -3286,7 +3286,7 @@ newos6*)
 lt_cv_deplibs_check_method=pass_all
 ;;
   
  -openbsd*)
  +openbsd* | bitrig*)
 if test -z `echo __ELF__ | $CC -E - | $GREP __ELF__`; then
   lt_cv_deplibs_check_method='match_pattern 
  /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
 else
  @@ -4632,7 +4632,7 @@ dnl Note also adjust exclude_expsyms for C++ above.
   # we just hope/assume this is gcc and not c89 (= MSVC++)
   with_gnu_ld=yes
   ;;
  -  openbsd*)
  +  openbsd* | bitrig*)
   with_gnu_ld=no
   ;;
 esac
  @@ -5361,7 +5361,7 @@ _LT_EOF
   *nto* | *qnx*)
 ;;
   
  -openbsd*)
  +openbsd* | bitrig*)
 if test -f /usr/libexec/ld.so; then
  _LT_TAGVAR(hardcode_direct, $1)=yes
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  @@ -6553,7 +6553,7 @@ if test yes != $_lt_caught_CXX_error; then
   _LT_TAGVAR(ld_shlibs, $1)=yes
  ;;
   
  -  openbsd*)
  +  openbsd* | bitrig*)
  if test -f /usr/libexec/ld.so; then
_LT_TAGVAR(hardcode_direct, $1)=yes
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  diff --git a/m4/ltdl.m4 b/m4/ltdl.m4
  index 6cb5727..9b2a535 100644
  --- a/m4/ltdl.m4
  +++ b/m4/ltdl.m4
  @@ -496,7 +496,7 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
 netbsd*)
   lt_cv_sys_dlopen_deplibs=yes
   ;;
  -  openbsd*)
  +  openbsd* | bitrig*)
   lt_cv_sys_dlopen_deplibs=yes
   ;;
 osf[[1234]]*)
  diff --git a/tests/deplibs-ident.at b/tests/deplibs-ident.at
  index 5758311..c47586a 100644
  --- a/tests/deplibs-ident.at
  +++ b/tests/deplibs-ident.at
  @@ -67,7 +67,7 @@ int main() { return a1() + a2() + a3() + c(); }
 [0],[stdout],[ignore])
 AT_CHECK([$EGREP 'cee.*cee' stdout], 1, [ignore], [ignore])
 AT_XFAIL_IF([case $host in
  - *-*-aix*|hppa*-*-hpux*|*-*-interix*|*-*-openbsd*) false;;
  + 
  *-*-aix*|hppa*-*-hpux*|*-*-interix*|*-*-openbsd*|*-*-bitrig*) false;;
*):;;
  esac])
 dnl This is currently broken in libtool
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 
 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




Re: [PATCH] Add Bitrig support

2012-08-30 Thread Brad Smith
On Tue, Aug 21, 2012 at 11:50:21PM -0400, Brad Smith wrote:
 The following diff adds support for Bitrig, which is a
 fork of OpenBSD.
 
Any comments?

 diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh
 index 1d71f0e..28398fd 100644
 --- a/build-aux/ltmain.m4sh
 +++ b/build-aux/ltmain.m4sh
 @@ -4849,7 +4849,7 @@ func_mode_link ()
   # These systems don't actually have a C library (as such)
   test X-lc = X$arg  continue
   ;;
 -   *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
 +   *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
   # Do not include libc due to us having libc/libc_r.
   test X-lc = X$arg  continue
   ;;
 @@ -6879,7 +6879,7 @@ func_mode_link ()
 *-*-netbsd*)
   # Don't link with libc until the a.out ld.so is fixed.
   ;;
 -   *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
 +   *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
   # Do not include libc due to us having libc/libc_r.
   ;;
 *-*-sco3.2v5* | *-*-sco5v6*)
 diff --git a/m4/libtool.m4 b/m4/libtool.m4
 index bd0bb9e..1b5012f 100644
 --- a/m4/libtool.m4
 +++ b/m4/libtool.m4
 @@ -1474,7 +1474,7 @@ old_postuninstall_cmds=
  
  if test -n $RANLIB; then
case $host_os in
 -  openbsd*)
 +  openbsd* | bitrig*)
  old_postinstall_cmds=$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib
  ;;
*)
 @@ -1642,7 +1642,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  lt_cv_sys_max_cmd_len=8192;
  ;;
  
 -  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
 +  netbsd* | freebsd* | openbsd* | darwin* | dragonfly* | bitrig*)
  # 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`
 @@ -2715,7 +2715,7 @@ newsos6)
dynamic_linker='ldqnx.so'
;;
  
 -openbsd*)
 +openbsd* | bitrig*)
version_type=sunos
sys_lib_dlsearch_path_spec=/usr/lib
need_lib_prefix=no
 @@ -3286,7 +3286,7 @@ newos6*)
lt_cv_deplibs_check_method=pass_all
;;
  
 -openbsd*)
 +openbsd* | bitrig*)
if test -z `echo __ELF__ | $CC -E - | $GREP __ELF__`; then
  lt_cv_deplibs_check_method='match_pattern 
 /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
else
 @@ -4632,7 +4632,7 @@ dnl Note also adjust exclude_expsyms for C++ above.
  # we just hope/assume this is gcc and not c89 (= MSVC++)
  with_gnu_ld=yes
  ;;
 -  openbsd*)
 +  openbsd* | bitrig*)
  with_gnu_ld=no
  ;;
esac
 @@ -5361,7 +5361,7 @@ _LT_EOF
  *nto* | *qnx*)
;;
  
 -openbsd*)
 +openbsd* | bitrig*)
if test -f /usr/libexec/ld.so; then
   _LT_TAGVAR(hardcode_direct, $1)=yes
   _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 @@ -6553,7 +6553,7 @@ if test yes != $_lt_caught_CXX_error; then
  _LT_TAGVAR(ld_shlibs, $1)=yes
   ;;
  
 -  openbsd*)
 +  openbsd* | bitrig*)
   if test -f /usr/libexec/ld.so; then
 _LT_TAGVAR(hardcode_direct, $1)=yes
 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
 diff --git a/m4/ltdl.m4 b/m4/ltdl.m4
 index 6cb5727..9b2a535 100644
 --- a/m4/ltdl.m4
 +++ b/m4/ltdl.m4
 @@ -496,7 +496,7 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
netbsd*)
  lt_cv_sys_dlopen_deplibs=yes
  ;;
 -  openbsd*)
 +  openbsd* | bitrig*)
  lt_cv_sys_dlopen_deplibs=yes
  ;;
osf[[1234]]*)
 diff --git a/tests/deplibs-ident.at b/tests/deplibs-ident.at
 index 5758311..c47586a 100644
 --- a/tests/deplibs-ident.at
 +++ b/tests/deplibs-ident.at
 @@ -67,7 +67,7 @@ int main() { return a1() + a2() + a3() + c(); }
  [0],[stdout],[ignore])
AT_CHECK([$EGREP 'cee.*cee' stdout], 1, [ignore], [ignore])
AT_XFAIL_IF([case $host in
 - *-*-aix*|hppa*-*-hpux*|*-*-interix*|*-*-openbsd*) false;;
 + 
 *-*-aix*|hppa*-*-hpux*|*-*-interix*|*-*-openbsd*|*-*-bitrig*) false;;
   *):;;
 esac])
dnl This is currently broken in libtool

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




[PATCH] Add Bitrig support

2012-08-21 Thread Brad Smith
The following diff adds support for Bitrig, which is a
fork of OpenBSD.


diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh
index 1d71f0e..28398fd 100644
--- a/build-aux/ltmain.m4sh
+++ b/build-aux/ltmain.m4sh
@@ -4849,7 +4849,7 @@ func_mode_link ()
# These systems don't actually have a C library (as such)
test X-lc = X$arg  continue
;;
- *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
# Do not include libc due to us having libc/libc_r.
test X-lc = X$arg  continue
;;
@@ -6879,7 +6879,7 @@ func_mode_link ()
  *-*-netbsd*)
# Don't link with libc until the a.out ld.so is fixed.
;;
- *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
+ *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
# Do not include libc due to us having libc/libc_r.
;;
  *-*-sco3.2v5* | *-*-sco5v6*)
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index bd0bb9e..1b5012f 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -1474,7 +1474,7 @@ old_postuninstall_cmds=
 
 if test -n $RANLIB; then
   case $host_os in
-  openbsd*)
+  openbsd* | bitrig*)
 old_postinstall_cmds=$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib
 ;;
   *)
@@ -1642,7 +1642,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
 lt_cv_sys_max_cmd_len=8192;
 ;;
 
-  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
+  netbsd* | freebsd* | openbsd* | darwin* | dragonfly* | bitrig*)
 # 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`
@@ -2715,7 +2715,7 @@ newsos6)
   dynamic_linker='ldqnx.so'
   ;;
 
-openbsd*)
+openbsd* | bitrig*)
   version_type=sunos
   sys_lib_dlsearch_path_spec=/usr/lib
   need_lib_prefix=no
@@ -3286,7 +3286,7 @@ newos6*)
   lt_cv_deplibs_check_method=pass_all
   ;;
 
-openbsd*)
+openbsd* | bitrig*)
   if test -z `echo __ELF__ | $CC -E - | $GREP __ELF__`; then
 lt_cv_deplibs_check_method='match_pattern 
/lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
   else
@@ -4632,7 +4632,7 @@ dnl Note also adjust exclude_expsyms for C++ above.
 # we just hope/assume this is gcc and not c89 (= MSVC++)
 with_gnu_ld=yes
 ;;
-  openbsd*)
+  openbsd* | bitrig*)
 with_gnu_ld=no
 ;;
   esac
@@ -5361,7 +5361,7 @@ _LT_EOF
 *nto* | *qnx*)
   ;;
 
-openbsd*)
+openbsd* | bitrig*)
   if test -f /usr/libexec/ld.so; then
_LT_TAGVAR(hardcode_direct, $1)=yes
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
@@ -6553,7 +6553,7 @@ if test yes != $_lt_caught_CXX_error; then
 _LT_TAGVAR(ld_shlibs, $1)=yes
;;
 
-  openbsd*)
+  openbsd* | bitrig*)
if test -f /usr/libexec/ld.so; then
  _LT_TAGVAR(hardcode_direct, $1)=yes
  _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
diff --git a/m4/ltdl.m4 b/m4/ltdl.m4
index 6cb5727..9b2a535 100644
--- a/m4/ltdl.m4
+++ b/m4/ltdl.m4
@@ -496,7 +496,7 @@ AC_CACHE_CHECK([whether deplibs are loaded by dlopen],
   netbsd*)
 lt_cv_sys_dlopen_deplibs=yes
 ;;
-  openbsd*)
+  openbsd* | bitrig*)
 lt_cv_sys_dlopen_deplibs=yes
 ;;
   osf[[1234]]*)
diff --git a/tests/deplibs-ident.at b/tests/deplibs-ident.at
index 5758311..c47586a 100644
--- a/tests/deplibs-ident.at
+++ b/tests/deplibs-ident.at
@@ -67,7 +67,7 @@ int main() { return a1() + a2() + a3() + c(); }
   [0],[stdout],[ignore])
   AT_CHECK([$EGREP 'cee.*cee' stdout], 1, [ignore], [ignore])
   AT_XFAIL_IF([case $host in
- *-*-aix*|hppa*-*-hpux*|*-*-interix*|*-*-openbsd*) false;;
+ *-*-aix*|hppa*-*-hpux*|*-*-interix*|*-*-openbsd*|*-*-bitrig*) 
false;;
  *):;;
esac])
   dnl This is currently broken in libtool

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




[PATCH] Update/simplify OpenBSD support

2012-08-02 Thread Brad Smith
The following diff updates and simplifies the OpenBSD
support within libtool. I have corrected the need_version
handling for ELF vs a.out. I have also dropped support
for 2.x releases. I'd rather simplify the target support
and not worry about releases that are over a decade old.
There have been over 23 releases/11 years since the 2.9
release.


diff --git a/m4/libtool.m4 b/m4/libtool.m4
index a8ecbc3..cf70c18 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -2719,26 +2719,15 @@ openbsd*)
   version_type=sunos
   sys_lib_dlsearch_path_spec=/usr/lib
   need_lib_prefix=no
-  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
-  case $host_os in
-openbsd3.3 | openbsd3.3.*) need_version=yes ;;
-*) need_version=no  ;;
-  esac
+  if test -z `echo __ELF__ | $CC -E - | $GREP __ELF__`; the
+need_version=no
+  else
+need_version=yes
+  fi
   library_names_spec='$libname$release$shared_ext$versuffix 
$libname$shared_ext$versuffix'
   finish_cmds='PATH=\$PATH:/sbin ldconfig -m $libdir'
   shlibpath_var=LD_LIBRARY_PATH
-  if test -z `echo __ELF__ | $CC -E - | $GREP __ELF__` || test 
openbsd2.8-powerpc = $host_os-$host_cpu; then
-case $host_os in
-  openbsd2.[[89]] | openbsd2.[[89]].*)
-   shlibpath_overrides_runpath=no
-   ;;
-  *)
-   shlibpath_overrides_runpath=yes
-   ;;
-  esac
-  else
-shlibpath_overrides_runpath=yes
-  fi
+  shlibpath_overrides_runpath=yes
   ;;
 
 os2*)
@@ -3298,7 +3287,7 @@ newos6*)
   ;;
 
 openbsd*)
-  if test -z `echo __ELF__ | $CC -E - | $GREP __ELF__` || test 
openbsd2.8-powerpc = $host_os-$host_cpu; then
+  if test -z `echo __ELF__ | $CC -E - | $GREP __ELF__`; then
 lt_cv_deplibs_check_method='match_pattern 
/lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
   else
 lt_cv_deplibs_check_method='match_pattern 
/lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
@@ -5375,22 +5364,14 @@ _LT_EOF
_LT_TAGVAR(hardcode_direct, $1)=yes
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
-   if test -z `echo __ELF__ | $CC -E - | $GREP __ELF__` || test 
openbsd2.8-powerpc = $host_os-$host_cpu; then
+   if test -z `echo __ELF__ | $CC -E - | $GREP __ELF__`; then
  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs 
$deplibs $compiler_flags'
  _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib 
$libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
  _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
else
- case $host_os in
-  openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
-_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs 
$deplibs $linker_flags'
-_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
-;;
-  *)
-_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib 
$libobjs $deplibs $compiler_flags'
-_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
-;;
- esac
+ _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs 
$deplibs $compiler_flags'
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
fi
   else
_LT_TAGVAR(ld_shlibs, $1)=no
@@ -6570,11 +6551,6 @@ if test yes != $_lt_caught_CXX_error; then
 _LT_TAGVAR(ld_shlibs, $1)=yes
;;
 
-  openbsd2*)
-# C++ shared libraries are fairly broken
-   _LT_TAGVAR(ld_shlibs, $1)=no
-   ;;
-
   openbsd*)
if test -f /usr/libexec/ld.so; then
  _LT_TAGVAR(hardcode_direct, $1)=yes
@@ -6582,7 +6558,7 @@ if test yes != $_lt_caught_CXX_error; then
  _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects 
$libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
- if test -z `echo __ELF__ | $CC -E - | grep __ELF__` || test 
openbsd2.8-powerpc = $host_os-$host_cpu; then
+ if test -z `echo __ELF__ | $CC -E - | grep __ELF__`; then
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag 
$predep_objects $libobjs $deplibs $postdep_objects $compiler_flags 
$wl-retain-symbols-file,$export_symbols -o $lib'
_LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
_LT_TAGVAR(whole_archive_flag_spec, 
$1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.