Date: Tue, 6 Mar 2007 08:41:04 +0900 (JST) From: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/109955: fix about japanese/vflib on objformat problem. Message-ID: <200703052341.l25Nf4jw001126@231124.173202.kyoto-inetbb.jp> Resent-Message-ID: <200703060010.l260A6Lg090973@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 109955 >Category: ports >Synopsis: fix about japanese/vflib on objformat problem. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 06 00:10:05 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Tsurutani Naoki >Release: FreeBSD 7.0-CURRENT i386 >Organization: >Environment: System: FreeBSD 231124.173202.kyoto-inetbb.jp 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Sun Mar 4 23:41:07 JST 2007 turutani@polymer12.localnet.priv:/usr/local/work/usr/obj/usr/src/sys/POLYMER5 i386 >Description: fix objformat problem of japanese/vflib on current host. this fix is not minimal, and take another fix if necessary. >How-To-Repeat: >Fix: --- ltconfig.orig Wed May 30 13:20:36 2001 +++ ltconfig Mon Mar 5 12:53:51 2007 @@ -1823,8 +1823,29 @@ dynamic_linker=no ;; -freebsd*) - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` +kfreebsd*-gnu) + version_type=linux + need_lib_prefix=no + need_version=no + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}.so' + soname_spec='${libname}${release}.so$major' + shlibpath_var=LD_LIBRARY_PATH + shlibpath_overrides_runpath=no + hardcode_into_libs=yes + dynamic_linker='GNU ld.so' + ;; + +freebsd* | dragonfly*) + # DragonFly does not have aout. When/if they implement a new + # versioning mechanism, adjust this. + if test -x /usr/bin/objformat; then + objformat=`/usr/bin/objformat` + else + case $host_os in + freebsd[[123]]*) objformat=aout ;; + *) objformat=elf ;; + esac + fi version_type=freebsd-$objformat case "$version_type" in freebsd-elf*) @@ -1847,9 +1868,19 @@ freebsd2* | freebsd3.[01]*) shlibpath_overrides_runpath=yes ;; - *) # from 3.2 on - shlibpath_overrides_runpath=no + freebsd3.[[01]]* | freebsdelf3.[[01]]*) + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) + shlibpath_overrides_runpath=no + hardcode_into_libs=yes ;; + freebsd*) # from 4.6 on + shlibpath_overrides_runpath=yes + hardcode_into_libs=yes + ;; esac ;; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200703052341.l25Nf4jw001126>