diff options
author | Sascha Schumann <sas@php.net> | 2000-12-14 16:17:31 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-12-14 16:17:31 +0000 |
commit | e3c79b33f8af2e7286609e2057380b80424d2af3 (patch) | |
tree | a1b8b898d47d73b24d44371e59adb14d107b83c9 | |
parent | e9c5c6ea7a872d5d8ead7f2f11cc54bb7caae252 (diff) | |
download | php-git-e3c79b33f8af2e7286609e2057380b80424d2af3.tar.gz |
Fix OpenBSD behaviour WRT building shared libraries. Also add OpenBSD 2.8
support.
-rw-r--r-- | ltconfig | 20 |
1 files changed, 14 insertions, 6 deletions
@@ -1105,6 +1105,9 @@ cygwin* | mingw*) with_gnu_ld=no fi ;; +openbsd*) + with_gnu_ld=no + ;; esac @@ -1402,10 +1405,18 @@ 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 + 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 @@ netbsd*) 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*) |