Updated ltconfig for OpenBSD (thanks Peter!)
authorSam Lantinga <slouken@libsdl.org>
Thu, 09 Aug 2001 06:11:49 +0000
changeset 143db0b91d99dbc
parent 142 40676b1aa39d
child 144 1cfa4282f2eb
Updated ltconfig for OpenBSD (thanks Peter!)
ltconfig
     1.1 --- a/ltconfig	Thu Aug 09 06:08:57 2001 +0000
     1.2 +++ b/ltconfig	Thu Aug 09 06:11:49 2001 +0000
     1.3 @@ -1452,9 +1452,9 @@
     1.4        *)
     1.5  	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
     1.6  	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
     1.7 -	 if [ "`/usr/bin/file /usr/lib/libc.so.* | grep ELF`" != "" ]; then
     1.8 -	   export_dynamic_flag_spec='${wl}-E'
     1.9 -	 fi
    1.10 +	if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    1.11 +	  export_dynamic_flag_spec='${wl}-E'
    1.12 +	fi
    1.13        ;;
    1.14      esac
    1.15      ;;
    1.16 @@ -2081,6 +2081,17 @@
    1.17  
    1.18  openbsd*)
    1.19    version_type=sunos
    1.20 +  need_lib_prefix=no
    1.21 +  need_version=no
    1.22 +  file_magic_cmd=/usr/bin/file
    1.23 +  file_magic_test_file=`echo /usr/lib/libc.so.*`
    1.24 +  if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    1.25 +    deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
    1.26 +    shlibpath_overrides_runpath=no
    1.27 +  else
    1.28 +    deplibs_check_method='file_magic OpenBSD.* shared library'
    1.29 +    shlibpath_overrides_runpath=yes
    1.30 +  fi
    1.31    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
    1.32    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
    1.33    shlibpath_var=LD_LIBRARY_PATH