cvs: php4(PHP_4_0_6) / ltconfig

From: Date: Sat, 12 May 2001 10:03:34 +0000
Subject: cvs: php4(PHP_4_0_6) / ltconfig
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-5692@lists.php.net to get a copy of this message
avsm Sat May 12 03:03:34 2001 EDT Modified files: (Branch: PHP_4_0_6) /php4 ltconfig Log: sync OpenBSD libtool 1.3.5 patches on the release branch Index: php4/ltconfig diff -u php4/ltconfig:1.21.2.1 php4/ltconfig:1.21.2.2 --- php4/ltconfig:1.21.2.1 Sat May 12 02:39:32 2001 +++ php4/ltconfig Sat May 12 03:03:34 2001 @@ -1105,6 +1105,9 @@ with_gnu_ld=no fi ;; +openbsd*) + with_gnu_ld=no + ;; esac @@ -1402,10 +1405,21 @@ ;; 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 [ "/usr/bin/file /usr/lib/libc.so.* | grep ELF" != "" ]; then + export_dynamic_flag_spec='${wl}-E' + fi + ;; + esac ;; os2*) @@ -2019,13 +2033,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*)

« previous php.cvs (#5692) next »