# HG changeset patch # User Sam Lantinga # Date 1009389058 0 # Node ID 716ab2549f7801df8b9528d2a7289a132b382725 # Parent 80b647695abddb40a0337678d033ebe918f105e7 *** empty log message *** diff -r 80b647695abd -r 716ab2549f78 ltconfig --- a/ltconfig Thu Dec 20 22:46:09 2001 +0000 +++ b/ltconfig Wed Dec 26 17:50:58 2001 +0000 @@ -501,7 +501,14 @@ if test -n "$RANLIB"; then old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" + case "$host_os" in + openbsd*) + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" + ;; + *) + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" + ;; + esac fi # Set sane defaults for `DLLTOOL', `OBJDUMP', and `AS', used on cygwin. @@ -1444,19 +1451,23 @@ openbsd*) hardcode_direct=yes hardcode_shlibpath_var=no - case "$host_os" in + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2. +8-powerpc"; then + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts' + hardcode_libdir_flag_spec='${wl}-R$libdir' + export_dynamic_flag_spec='${wl}-E' + else + case "$host_os" in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts' - hardcode_libdir_flag_spec='-R$libdir' - ;; + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts' + hardcode_libdir_flag_spec='-R$libdir' + ;; *) - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts' - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then - export_dynamic_flag_spec='${wl}-E' - fi - ;; - esac + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts' + hardcode_libdir_flag_spec='${wl}-R$libdir' + ;; + esac + fi ;; os2*) @@ -2083,11 +2094,20 @@ version_type=sunos need_lib_prefix=no need_version=no + sys_lib_search_path_spec="/usr/lib" + sys_lib_dlsearch_path_spec="/usr/lib /usr/local/lib" file_magic_cmd=/usr/bin/file file_magic_test_file=`echo /usr/lib/libc.so.*` if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' - shlibpath_overrides_runpath=no + case "$host_os" in + openbsd2.[89] | openbsd2.[89].*) + shlibpath_overrides_runpath=no + ;; + *) + shlibpath_overrides_runpath=yes + ;; + esac else deplibs_check_method='file_magic OpenBSD.* shared library' shlibpath_overrides_runpath=yes