9263fb4321
Adds channel coupling. Miscellaneous changes to libao and vorbis-tools.
58 lines
1.7 KiB
Plaintext
58 lines
1.7 KiB
Plaintext
$OpenBSD: patch-ltconfig,v 1.2 2001/08/20 21:53:56 naddy Exp $
|
|
--- ltconfig.orig Thu Jul 13 23:54:59 2000
|
|
+++ ltconfig Mon Aug 13 18:45:52 2001
|
|
@@ -1105,6 +1105,9 @@ cygwin* | mingw*)
|
|
with_gnu_ld=no
|
|
fi
|
|
;;
|
|
+openbsd*)
|
|
+ with_gnu_ld=no
|
|
+ ;;
|
|
|
|
esac
|
|
|
|
@@ -1402,10 +1405,21 @@ else
|
|
;;
|
|
|
|
openbsd*)
|
|
- archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
|
|
- hardcode_libdir_flag_spec='-R$libdir'
|
|
hardcode_direct=yes
|
|
hardcode_shlibpath_var=no
|
|
+ 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='$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
|
|
;;
|
|
|
|
os2*)
|
|
@@ -2021,9 +2035,16 @@ netbsd*)
|
|
|
|
openbsd*)
|
|
version_type=sunos
|
|
- if test "$with_gnu_ld" = yes; then
|
|
- need_lib_prefix=no
|
|
- need_version=no
|
|
+ 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'
|
|
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
|