RE: [PHP-QA] OpenBSD 2.8 compile failure
| From: | Anil Madhavapeddy | Date: | Thu, 07 Dec 2000 15:57:39 +0000 |
| Subject: | RE: [PHP-QA] OpenBSD 2.8 compile failure | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-1747@lists.php.net to get a copy of this message | ||
Here is the patch to ltconfig for OpenBSD-2.x:
Could I request that this gets testing by whoever in the QA team
runs OpenBSD, to make sure it doesn't cause any accidental
hiccups? Remember that it will compile fine without this patch,
but will fail to find any shared libraries. Non-i386 tests
especially would be good.
thanks,
<----------------- SNIP HERE ------------------->
Index: ltconfig
===================================================================
RCS file: /repository/php4/ltconfig,v
retrieving revision 1.20
diff -u -r1.20 ltconfig
--- ltconfig 2000/11/04 02:42:10 1.20
+++ ltconfig 2000/12/07 15:50:10
@@ -1105,6 +1105,9 @@
with_gnu_ld=no
fi
;;
+openbsd*)
+ with_gnu_ld=no
+ ;;
esac
@@ -1402,10 +1405,18 @@
;;
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
+ openbsd2.[01234567])
+ 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'
+ ;;
+ esac
;;
os2*)
@@ -2019,13 +2030,10 @@
openbsd*)
version_type=sunos
- if test "$with_gnu_ld" = yes; then
- need_lib_prefix=no
- need_version=no
- fi
library_names_spec='${libname}${release}.so$versuffix
${libname}.so$versuffix'
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
shlibpath_var=LD_LIBRARY_PATH
+ deplibs_check_method='pass_all'
;;
os2*)
<----------------- SNIP HERE ------------------->
--
Anil Madhavapeddy, <anil@recoil.org>