cvs: php4(php_4_0_4) / ltconfig

From: Date: Thu, 14 Dec 2000 16:17:32 +0000
Subject: cvs: php4(php_4_0_4) / ltconfig
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-3157@lists.php.net to get a copy of this message
sas Thu Dec 14 08:17:32 2000 EDT Branch: php_4_0_4 Modified files: /php4 ltconfig Log: Fix OpenBSD behaviour WRT building shared libraries. Also add OpenBSD 2.8 support. Index: php4/ltconfig diff -u php4/ltconfig:1.20.2.1 php4/ltconfig:1.20.2.2 --- php4/ltconfig:1.20.2.1 Sat Dec 9 03:37:27 2000 +++ php4/ltconfig Thu Dec 14 08:17:31 2000 @@ -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*) @@ -2018,13 +2029,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 (#3157) next »