Updated ltconfig for OpenBSD (thanks Peter!)
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40144
This commit is contained in:
parent
2c0f0f93f3
commit
86765b7947
1 changed files with 14 additions and 3 deletions
17
ltconfig
17
ltconfig
|
@ -1452,9 +1452,9 @@ else
|
||||||
*)
|
*)
|
||||||
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
|
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linkopts'
|
||||||
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
|
||||||
if [ "`/usr/bin/file /usr/lib/libc.so.* | grep ELF`" != "" ]; then
|
if test "`echo __ELF__ | $CC -E - | grep __ELF__`" = "" -o "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
|
||||||
export_dynamic_flag_spec='${wl}-E'
|
export_dynamic_flag_spec='${wl}-E'
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
@ -2081,6 +2081,17 @@ netbsd*)
|
||||||
|
|
||||||
openbsd*)
|
openbsd*)
|
||||||
version_type=sunos
|
version_type=sunos
|
||||||
|
need_lib_prefix=no
|
||||||
|
need_version=no
|
||||||
|
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
|
||||||
|
else
|
||||||
|
deplibs_check_method='file_magic OpenBSD.* shared library'
|
||||||
|
shlibpath_overrides_runpath=yes
|
||||||
|
fi
|
||||||
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
|
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
|
||||||
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|
||||||
shlibpath_var=LD_LIBRARY_PATH
|
shlibpath_var=LD_LIBRARY_PATH
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue