*** empty log message ***
authorSam Lantinga <slouken@libsdl.org>
Wed, 26 Dec 2001 17:50:58 +0000
changeset 260716ab2549f78
parent 259 80b647695abd
child 261 1c5f68da5fc2
*** empty log message ***
ltconfig
     1.1 --- a/ltconfig	Thu Dec 20 22:46:09 2001 +0000
     1.2 +++ b/ltconfig	Wed Dec 26 17:50:58 2001 +0000
     1.3 @@ -501,7 +501,14 @@
     1.4  
     1.5  if test -n "$RANLIB"; then
     1.6    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
     1.7 -  old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
     1.8 +  case "$host_os" in
     1.9 +  openbsd*)
    1.10 +    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
    1.11 +  ;;
    1.12 +  *)
    1.13 +    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
    1.14 +  ;;
    1.15 +  esac
    1.16  fi
    1.17  
    1.18  # Set sane defaults for `DLLTOOL', `OBJDUMP', and `AS', used on cygwin.
    1.19 @@ -1444,19 +1451,23 @@
    1.20    openbsd*)
    1.21      hardcode_direct=yes
    1.22      hardcode_shlibpath_var=no
    1.23 -    case "$host_os" in
    1.24 +    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.
    1.25 +8-powerpc"; then
    1.26 +      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
    1.27 +      hardcode_libdir_flag_spec='${wl}-R$libdir'
    1.28 +      export_dynamic_flag_spec='${wl}-E'
    1.29 +    else
    1.30 +      case "$host_os" in
    1.31        openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
    1.32 -	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
    1.33 -	hardcode_libdir_flag_spec='-R$libdir'
    1.34 -      ;;
    1.35 +       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
    1.36 +       hardcode_libdir_flag_spec='-R$libdir'
    1.37 +       ;;
    1.38        *)
    1.39 -	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
    1.40 -	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
    1.41 -	if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    1.42 -	  export_dynamic_flag_spec='${wl}-E'
    1.43 -	fi
    1.44 -      ;;
    1.45 -    esac
    1.46 +       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
    1.47 +       hardcode_libdir_flag_spec='${wl}-R$libdir'
    1.48 +       ;;
    1.49 +      esac
    1.50 +    fi
    1.51      ;;
    1.52  
    1.53    os2*)
    1.54 @@ -2083,11 +2094,20 @@
    1.55    version_type=sunos
    1.56    need_lib_prefix=no
    1.57    need_version=no
    1.58 +  sys_lib_search_path_spec="/usr/lib"
    1.59 +  sys_lib_dlsearch_path_spec="/usr/lib /usr/local/lib"
    1.60    file_magic_cmd=/usr/bin/file
    1.61    file_magic_test_file=`echo /usr/lib/libc.so.*`
    1.62    if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    1.63      deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
    1.64 -    shlibpath_overrides_runpath=no
    1.65 +    case "$host_os" in
    1.66 +    openbsd2.[89] | openbsd2.[89].*)
    1.67 +      shlibpath_overrides_runpath=no
    1.68 +    ;;
    1.69 +    *)
    1.70 +      shlibpath_overrides_runpath=yes
    1.71 +    ;;
    1.72 +    esac
    1.73    else
    1.74      deplibs_check_method='file_magic OpenBSD.* shared library'
    1.75      shlibpath_overrides_runpath=yes