3e2108adb8
minor update.
70 lines
3.2 KiB
Plaintext
70 lines
3.2 KiB
Plaintext
$OpenBSD: patch-acinclude_m4,v 1.5 2004/12/12 11:33:25 espie Exp $
|
|
--- acinclude.m4.orig Tue Nov 30 15:40:08 2004
|
|
+++ acinclude.m4 Mon Dec 6 11:54:55 2004
|
|
@@ -6208,6 +6208,19 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [d
|
|
lt_cv_sys_max_cmd_len=8192;
|
|
;;
|
|
|
|
+ netbsd* | freebsd* | openbsd* | darwin* )
|
|
+ # 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`
|
|
+ elif test -x /usr/sbin/sysctl; then
|
|
+ lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
|
|
+ else
|
|
+ lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
|
|
+ fi
|
|
+ # And add a safety zone
|
|
+ lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
|
|
+ ;;
|
|
+
|
|
*)
|
|
# If test is not a shell built-in, we'll probably end up computing a
|
|
# maximum length that is only half of the actual maximum length, but
|
|
@@ -7748,13 +7761,7 @@ nto-qnx*)
|
|
;;
|
|
|
|
openbsd*)
|
|
- lt_cv_file_magic_cmd=/usr/bin/file
|
|
- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
|
|
- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
|
|
- else
|
|
- lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
|
|
- fi
|
|
+ lt_cv_deplibs_check_method=pass_all
|
|
;;
|
|
|
|
osf3* | osf4* | osf5*)
|
|
@@ -8706,6 +8713,22 @@ case $host_os in
|
|
# Workaround some broken pre-1.5 toolchains
|
|
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
|
|
;;
|
|
+ openbsd2*)
|
|
+ # C++ shared libraries are fairly broken
|
|
+ _LT_AC_TAGVAR(ld_shlibs, $1)=no
|
|
+ ;;
|
|
+ openbsd*)
|
|
+ _LT_AC_TAGVAR(hardcode_direct, $1)=yes
|
|
+ _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
|
|
+ _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
+ if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
+ _LT_AC_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_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
+ _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
|
|
+ fi
|
|
+ output_verbose_link_cmd='echo'
|
|
+ ;;
|
|
osf3*)
|
|
case $cc_basename in
|
|
KCC)
|
|
@@ -11023,6 +11046,7 @@ EOF
|
|
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
|
|
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
|
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
|
|
+ _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
|
|
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
|
|
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
|
|
else
|